Skip to content

Commit

Permalink
fix test_reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewilliamboswell committed Nov 11, 2024
1 parent e4fd9ce commit fc0f938
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions crates/compiler/load/tests/test_reporting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand All @@ -5424,7 +5424,7 @@ mod test_reporting {
In Roc, functions are always written as a lambda, like
increment = \n -> n + 1
"#
"###
);

test_report!(
Expand Down Expand Up @@ -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:
Expand All @@ -5644,7 +5644,7 @@ mod test_reporting {
^
Tab characters are not allowed in Roc code. Please use spaces instead!
"
"###
);

test_report!(
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc0f938

Please sign in to comment.