Skip to content

Commit

Permalink
add tests for roc test --ignore-build-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Apr 6, 2024
1 parent 12d956c commit 9aab0ff
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/cli/tests/cli_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,20 @@ mod cli_run {
);
}

#[test]
fn expect_ignore_build_errors() {
test_roc_expect(
"crates/cli/tests/expects",
"IgnoreBuildErrors.roc",
&["--ignore-build-errors"],
indoc!(
r#"
1 failed and 1 passed in <ignored for test> ms.
"#
),
)
}

#[test]
#[cfg_attr(windows, ignore)]
fn transitive_expects() {
Expand Down
12 changes: 12 additions & 0 deletions crates/cli/tests/expects/IgnoreBuildErrors.roc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
interface IgnoreBuildErrors
exposes []
imports []

x = 1

expect x == 1

foo = \x -> x + 1

expect foo 2 == 3

0 comments on commit 9aab0ff

Please sign in to comment.