mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
increase stack size for debug tests
This commit is contained in:
parent
b4aa4a9089
commit
fd846b9a7a
2 changed files with 41 additions and 29 deletions
|
@ -3811,6 +3811,9 @@ fn list_range_length_overflow() {
|
||||||
|
|
||||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
mod pattern_match {
|
mod pattern_match {
|
||||||
|
#[allow(unused_imports)]
|
||||||
|
use crate::helpers::with_larger_debug_stack;
|
||||||
|
|
||||||
#[cfg(feature = "gen-llvm")]
|
#[cfg(feature = "gen-llvm")]
|
||||||
use crate::helpers::llvm::assert_evals_to;
|
use crate::helpers::llvm::assert_evals_to;
|
||||||
|
|
||||||
|
@ -3857,8 +3860,9 @@ mod pattern_match {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn ranged_matches_head() {
|
fn ranged_matches_head() {
|
||||||
assert_evals_to!(
|
with_larger_debug_stack(|| {
|
||||||
r#"
|
assert_evals_to!(
|
||||||
|
r#"
|
||||||
helper = \l -> when l is
|
helper = \l -> when l is
|
||||||
[] -> 1u8
|
[] -> 1u8
|
||||||
[A] -> 2u8
|
[A] -> 2u8
|
||||||
|
@ -3874,21 +3878,23 @@ mod pattern_match {
|
||||||
helper [B], helper [B, A], helper [B, B], helper [B, A, B, B],
|
helper [B], helper [B, A], helper [B, B], helper [B, A, B, B],
|
||||||
]
|
]
|
||||||
"#,
|
"#,
|
||||||
RocList::from_slice(&[
|
RocList::from_slice(&[
|
||||||
1, //
|
1, //
|
||||||
2, //
|
2, //
|
||||||
3, 3, 3, 3, //
|
3, 3, 3, 3, //
|
||||||
4, 4, 4, 4, //
|
4, 4, 4, 4, //
|
||||||
5, 5, 5, 5, //
|
5, 5, 5, 5, //
|
||||||
]),
|
]),
|
||||||
RocList<u8>
|
RocList<u8>
|
||||||
)
|
)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn ranged_matches_tail() {
|
fn ranged_matches_tail() {
|
||||||
assert_evals_to!(
|
with_larger_debug_stack(|| {
|
||||||
r#"
|
assert_evals_to!(
|
||||||
|
r#"
|
||||||
helper = \l -> when l is
|
helper = \l -> when l is
|
||||||
[] -> 1u8
|
[] -> 1u8
|
||||||
[A] -> 2u8
|
[A] -> 2u8
|
||||||
|
@ -3904,15 +3910,16 @@ mod pattern_match {
|
||||||
helper [B], helper [A, B], helper [B, B], helper [B, A, B, B],
|
helper [B], helper [A, B], helper [B, B], helper [B, A, B, B],
|
||||||
]
|
]
|
||||||
"#,
|
"#,
|
||||||
RocList::from_slice(&[
|
RocList::from_slice(&[
|
||||||
1, //
|
1, //
|
||||||
2, //
|
2, //
|
||||||
3, 3, 3, 3, //
|
3, 3, 3, 3, //
|
||||||
4, 4, 4, 4, //
|
4, 4, 4, 4, //
|
||||||
5, 5, 5, 5, //
|
5, 5, 5, 5, //
|
||||||
]),
|
]),
|
||||||
RocList<u8>
|
RocList<u8>
|
||||||
)
|
)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#[allow(unused_imports)]
|
||||||
|
use crate::helpers::with_larger_debug_stack;
|
||||||
|
|
||||||
#[cfg(feature = "gen-llvm")]
|
#[cfg(feature = "gen-llvm")]
|
||||||
use crate::helpers::llvm::assert_evals_to;
|
use crate::helpers::llvm::assert_evals_to;
|
||||||
|
|
||||||
|
@ -2167,9 +2170,10 @@ fn refcount_nullable_unwrapped_needing_no_refcount_issue_5027() {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm"))]
|
#[cfg(any(feature = "gen-llvm"))]
|
||||||
fn issue_5162_recast_nested_nullable_unwrapped_layout() {
|
fn issue_5162_recast_nested_nullable_unwrapped_layout() {
|
||||||
assert_evals_to!(
|
with_larger_debug_stack(|| {
|
||||||
indoc!(
|
assert_evals_to!(
|
||||||
r###"
|
indoc!(
|
||||||
|
r###"
|
||||||
app "test" provides [main] to "./platform"
|
app "test" provides [main] to "./platform"
|
||||||
|
|
||||||
Concept : [
|
Concept : [
|
||||||
|
@ -2184,10 +2188,11 @@ fn issue_5162_recast_nested_nullable_unwrapped_layout() {
|
||||||
when Dict.single bottom 0 is
|
when Dict.single bottom 0 is
|
||||||
_ -> Bool.true
|
_ -> Bool.true
|
||||||
"###
|
"###
|
||||||
),
|
),
|
||||||
true,
|
true,
|
||||||
bool
|
bool
|
||||||
);
|
);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue