Skip to content

Commit

Permalink
tests: fix broken test case
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Mar 25, 2024
1 parent 921c5e5 commit 4cc8023
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions go/compiler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ func TestError(t *testing.T) {
c := NewCompiler()
err := c.AddSource("rule test { condition: foo }")
assert.EqualError(t, err, `error: unknown identifier `+"`foo`"+`
╭─[line:1:24]
1 │ rule test { condition: foo }
│ ─┬─
│ ╰─── this identifier has not been declared
───╯
`)
--> line:1:24
|
1 | rule test { condition: foo }
| ^^^ this identifier has not been declared
|`)
}

0 comments on commit 4cc8023

Please sign in to comment.