From cc2599b47372d016ca6bc39d76c04c6951b74c9c Mon Sep 17 00:00:00 2001 From: Ayaz Hafiz Date: Fri, 9 Jun 2023 16:20:23 -0500 Subject: [PATCH] Use larger stack for abilities test --- crates/compiler/test_gen/src/gen_abilities.rs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/crates/compiler/test_gen/src/gen_abilities.rs b/crates/compiler/test_gen/src/gen_abilities.rs index e15d2758c4..a70be5274c 100644 --- a/crates/compiler/test_gen/src/gen_abilities.rs +++ b/crates/compiler/test_gen/src/gen_abilities.rs @@ -12,6 +12,8 @@ use roc_std::RocList; #[cfg(all(test, any(feature = "gen-llvm", feature = "gen-wasm")))] use roc_std::RocStr; +use crate::helpers::with_larger_debug_stack; + #[test] #[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] fn hash_specialization() { @@ -935,9 +937,10 @@ fn encode_derived_generic_tag_with_different_field_types() { #[test] #[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] fn specialize_unique_newtype_records() { - assert_evals_to!( - indoc!( - r#" + with_larger_debug_stack(|| { + assert_evals_to!( + indoc!( + r#" app "test" imports [Encode, TotallyNotJson] provides [main] to "./platform" @@ -949,10 +952,11 @@ fn specialize_unique_newtype_records() { _ -> "" _ -> "" "# - ), - RocStr::from(r#"{"a":true}{"b":true}"#), - RocStr - ) + ), + RocStr::from(r#"{"a":true}{"b":true}"#), + RocStr + ) + }); } #[test]