mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-14 07:45:04 +00:00
Use larger debug stack for abilities tests
This commit is contained in:
parent
5b0d47c9eb
commit
858fbba4e1
1 changed files with 89 additions and 77 deletions
|
@ -1060,9 +1060,12 @@ mod decode_immediate {
|
||||||
#[cfg(all(test, any(feature = "gen-llvm")))]
|
#[cfg(all(test, any(feature = "gen-llvm")))]
|
||||||
use roc_std::RocStr;
|
use roc_std::RocStr;
|
||||||
|
|
||||||
|
use crate::helpers::with_larger_debug_stack;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm"))]
|
#[cfg(any(feature = "gen-llvm"))]
|
||||||
fn string() {
|
fn string() {
|
||||||
|
with_larger_debug_stack(|| {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
|
@ -1077,6 +1080,7 @@ mod decode_immediate {
|
||||||
RocStr::from("foo"),
|
RocStr::from("foo"),
|
||||||
RocStr
|
RocStr
|
||||||
)
|
)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -1183,6 +1187,7 @@ mod decode_immediate {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn decode_list_of_strings() {
|
fn decode_list_of_strings() {
|
||||||
|
with_larger_debug_stack(|| {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
|
@ -1197,11 +1202,13 @@ fn decode_list_of_strings() {
|
||||||
RocStr::from("a,b,c"),
|
RocStr::from("a,b,c"),
|
||||||
RocStr
|
RocStr
|
||||||
)
|
)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(all(any(feature = "gen-llvm", feature = "gen-wasm")))]
|
#[cfg(all(any(feature = "gen-llvm", feature = "gen-wasm")))]
|
||||||
fn encode_then_decode_list_of_strings() {
|
fn encode_then_decode_list_of_strings() {
|
||||||
|
with_larger_debug_stack(|| {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
|
@ -1216,12 +1223,14 @@ fn encode_then_decode_list_of_strings() {
|
||||||
RocStr::from("a,b,c"),
|
RocStr::from("a,b,c"),
|
||||||
RocStr
|
RocStr
|
||||||
)
|
)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm"))]
|
#[cfg(any(feature = "gen-llvm"))]
|
||||||
#[ignore = "#3696: Currently hits some weird panic in borrow checking, not sure if it's directly related to abilities."]
|
#[ignore = "#3696: Currently hits some weird panic in borrow checking, not sure if it's directly related to abilities."]
|
||||||
fn encode_then_decode_list_of_lists_of_strings() {
|
fn encode_then_decode_list_of_lists_of_strings() {
|
||||||
|
with_larger_debug_stack(|| {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
|
@ -1236,6 +1245,7 @@ fn encode_then_decode_list_of_lists_of_strings() {
|
||||||
RocStr::from("a,b;c,d,e;f"),
|
RocStr::from("a,b;c,d,e;f"),
|
||||||
RocStr
|
RocStr
|
||||||
)
|
)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -2139,6 +2149,7 @@ mod eq {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn issue_4772_weakened_monomorphic_destructure() {
|
fn issue_4772_weakened_monomorphic_destructure() {
|
||||||
|
with_larger_debug_stack(|| {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r###"
|
r###"
|
||||||
|
@ -2166,5 +2177,6 @@ fn issue_4772_weakened_monomorphic_destructure() {
|
||||||
),
|
),
|
||||||
1234i64,
|
1234i64,
|
||||||
i64
|
i64
|
||||||
);
|
)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue