mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Indent tests more
This commit is contained in:
parent
cbdb535580
commit
0cb41b7a07
1 changed files with 17 additions and 17 deletions
|
@ -14,10 +14,10 @@ fn crash_literal() {
|
|||
assert_evals_to!(
|
||||
indoc!(
|
||||
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,
|
||||
u8
|
||||
|
@ -31,12 +31,12 @@ fn crash_variable() {
|
|||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
main =
|
||||
msg = "hello crash"
|
||||
if Bool.true then crash msg else 1u8
|
||||
"#
|
||||
main =
|
||||
msg = "hello crash"
|
||||
if Bool.true then crash msg else 1u8
|
||||
"#
|
||||
),
|
||||
1u8,
|
||||
u8
|
||||
|
@ -50,17 +50,17 @@ fn crash_in_call() {
|
|||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
getInfallible = \result -> when result is
|
||||
Ok x -> x
|
||||
_ -> crash "turns out this was fallible"
|
||||
getInfallible = \result -> when result is
|
||||
Ok x -> x
|
||||
_ -> crash "turns out this was fallible"
|
||||
|
||||
main =
|
||||
x : [Ok U64, Err Str]
|
||||
x = Err ""
|
||||
getInfallible x
|
||||
"#
|
||||
main =
|
||||
x : [Ok U64, Err Str]
|
||||
x = Err ""
|
||||
getInfallible x
|
||||
"#
|
||||
),
|
||||
1u64,
|
||||
u64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue