Use larger debug stack for abilities tests

This commit is contained in:
Ayaz Hafiz 2023-06-16 11:08:10 -05:00
parent 5b0d47c9eb
commit 858fbba4e1
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -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
);
)
})
}