Indent tests more

This commit is contained in:
Ayaz Hafiz 2022-11-24 14:55:11 -06:00
parent cbdb535580
commit 0cb41b7a07
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -14,10 +14,10 @@ fn crash_literal() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
r#" r#"
app "test" provides [main] to "./platform" app "test" provides [main] to "./platform"
main = if Bool.true then crash "hello crash" else 1u8 main = if Bool.true then crash "hello crash" else 1u8
"# "#
), ),
1u8, 1u8,
u8 u8
@ -31,12 +31,12 @@ fn crash_variable() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
r#" r#"
app "test" provides [main] to "./platform" app "test" provides [main] to "./platform"
main = main =
msg = "hello crash" msg = "hello crash"
if Bool.true then crash msg else 1u8 if Bool.true then crash msg else 1u8
"# "#
), ),
1u8, 1u8,
u8 u8
@ -50,17 +50,17 @@ fn crash_in_call() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
r#" r#"
app "test" provides [main] to "./platform" app "test" provides [main] to "./platform"
getInfallible = \result -> when result is getInfallible = \result -> when result is
Ok x -> x Ok x -> x
_ -> crash "turns out this was fallible" _ -> crash "turns out this was fallible"
main = main =
x : [Ok U64, Err Str] x : [Ok U64, Err Str]
x = Err "" x = Err ""
getInfallible x getInfallible x
"# "#
), ),
1u64, 1u64,
u64 u64