mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +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!(
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue