Skip to content

Commit

Permalink
Added backwards compatibility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Allon-Guralnek committed Apr 27, 2021
1 parent 09744dd commit c60a228
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/test/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,18 @@ func TestRunFile_InvalidArrai(t *testing.T) {
require.Error(t, err)
}

func TestRunFile_AssertFails(t *testing.T) {
t.Parallel()

file := testFile{source: "//test.assert.equal(1, 2)"}
err := runFile(context.Background(), &file)
require.Error(t, err)
}

func TestRunFile_TwoPass(t *testing.T) {
t.Parallel()

file := testFile{source: "(test1: 1 = 1, test2: 5 < 7)"}
file := testFile{source: "(test1: 1 = 1, test2: //test.assert.equal(2, 2))"}
err := runFile(context.Background(), &file)
require.NoError(t, err)
require.NotZero(t, file.wallTime)
Expand Down

0 comments on commit c60a228

Please sign in to comment.