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")))]
|
||||
use roc_std::RocStr;
|
||||
|
||||
use crate::helpers::with_larger_debug_stack;
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
fn string() {
|
||||
with_larger_debug_stack(|| {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
|
@ -1077,6 +1080,7 @@ mod decode_immediate {
|
|||
RocStr::from("foo"),
|
||||
RocStr
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -1183,6 +1187,7 @@ mod decode_immediate {
|
|||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn decode_list_of_strings() {
|
||||
with_larger_debug_stack(|| {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
|
@ -1197,11 +1202,13 @@ fn decode_list_of_strings() {
|
|||
RocStr::from("a,b,c"),
|
||||
RocStr
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(all(any(feature = "gen-llvm", feature = "gen-wasm")))]
|
||||
fn encode_then_decode_list_of_strings() {
|
||||
with_larger_debug_stack(|| {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
|
@ -1216,12 +1223,14 @@ fn encode_then_decode_list_of_strings() {
|
|||
RocStr::from("a,b,c"),
|
||||
RocStr
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[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() {
|
||||
with_larger_debug_stack(|| {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
|
@ -1236,6 +1245,7 @@ fn encode_then_decode_list_of_lists_of_strings() {
|
|||
RocStr::from("a,b;c,d,e;f"),
|
||||
RocStr
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -2139,6 +2149,7 @@ mod eq {
|
|||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn issue_4772_weakened_monomorphic_destructure() {
|
||||
with_larger_debug_stack(|| {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r###"
|
||||
|
@ -2166,5 +2177,6 @@ fn issue_4772_weakened_monomorphic_destructure() {
|
|||
),
|
||||
1234i64,
|
||||
i64
|
||||
);
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue