mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
fix test_reporting
This commit is contained in:
parent
e4fd9ce434
commit
fc0f938e5c
1 changed files with 25 additions and 25 deletions
|
@ -5406,7 +5406,7 @@ mod test_reporting {
|
|||
2 -> 2
|
||||
"
|
||||
),
|
||||
@r#"
|
||||
@r###"
|
||||
── UNKNOWN OPERATOR in tmp/when_outdented_branch/Test.roc ──────────────────────
|
||||
|
||||
This looks like an operator, but it's not one I recognize!
|
||||
|
@ -5424,7 +5424,7 @@ mod test_reporting {
|
|||
In Roc, functions are always written as a lambda, like
|
||||
|
||||
increment = \n -> n + 1
|
||||
"#
|
||||
"###
|
||||
);
|
||||
|
||||
test_report!(
|
||||
|
@ -5635,7 +5635,7 @@ mod test_reporting {
|
|||
test_report!(
|
||||
return_space_problem,
|
||||
"return \t",
|
||||
@r"
|
||||
@r###"
|
||||
── TAB CHARACTER in tmp/return_space_problem/Test.roc ──────────────────────────
|
||||
|
||||
I encountered a tab character:
|
||||
|
@ -5644,7 +5644,7 @@ mod test_reporting {
|
|||
^
|
||||
|
||||
Tab characters are not allowed in Roc code. Please use spaces instead!
|
||||
"
|
||||
"###
|
||||
);
|
||||
|
||||
test_report!(
|
||||
|
@ -14659,7 +14659,7 @@ All branches in an `if` must have the same type!
|
|||
leftover_statement,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14690,7 +14690,7 @@ All branches in an `if` must have the same type!
|
|||
fx_fn_annotated_as_pure,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14728,7 +14728,7 @@ All branches in an `if` must have the same type!
|
|||
fx_fn_annotated_as_pure_stmt,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14776,7 +14776,7 @@ All branches in an `if` must have the same type!
|
|||
nested_function_def_fx_no_bang,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14807,7 +14807,7 @@ All branches in an `if` must have the same type!
|
|||
ignored_result_stmt,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14839,7 +14839,7 @@ All branches in an `if` must have the same type!
|
|||
ignored_stmt_forgot_to_call,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14881,7 +14881,7 @@ All branches in an `if` must have the same type!
|
|||
function_def_leftover_bang,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14910,7 +14910,7 @@ All branches in an `if` must have the same type!
|
|||
effect_in_top_level_value_def,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14948,7 +14948,7 @@ All branches in an `if` must have the same type!
|
|||
aliased_fx_fn,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -14978,7 +14978,7 @@ All branches in an `if` must have the same type!
|
|||
unsuffixed_fx_in_record,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15010,7 +15010,7 @@ All branches in an `if` must have the same type!
|
|||
suffixed_pure_in_record,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15040,7 +15040,7 @@ All branches in an `if` must have the same type!
|
|||
unsuffixed_fx_arg,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15077,7 +15077,7 @@ All branches in an `if` must have the same type!
|
|||
suffixed_pure_arg,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15112,7 +15112,7 @@ All branches in an `if` must have the same type!
|
|||
unsuffixed_tuple_fx_field,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15156,7 +15156,7 @@ All branches in an `if` must have the same type!
|
|||
suffixed_tuple_pure_field,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15184,7 +15184,7 @@ All branches in an `if` must have the same type!
|
|||
unsuffixed_tag_fx_field,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15228,7 +15228,7 @@ All branches in an `if` must have the same type!
|
|||
suffixed_tag_pure_field,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15256,7 +15256,7 @@ All branches in an `if` must have the same type!
|
|||
unsuffixed_opaque_fx_field,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15288,7 +15288,7 @@ All branches in an `if` must have the same type!
|
|||
suffixed_opaque_pure_field,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15318,7 +15318,7 @@ All branches in an `if` must have the same type!
|
|||
fx_passed_to_untyped_pure_hof,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
@ -15361,7 +15361,7 @@ All branches in an `if` must have the same type!
|
|||
fx_passed_to_partially_inferred_pure_hof,
|
||||
indoc!(
|
||||
r#"
|
||||
app [main!] { pf: platform "../../../../../examples/cli/effects-platform/main.roc" }
|
||||
app [main!] { pf: platform "../../../../../crates/test-platform-effects-zig/main.roc" }
|
||||
|
||||
import pf.Effect
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue