Skip to content

Commit

Permalink
fix: duplicates an existing test case number
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgaOzen committed Sep 25, 2024
1 parent 8912eaa commit 0aa070c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/dsl/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,15 @@ var _ = Describe("parser", func() {

_, err := pr.Parse()
Expect(err).Should(HaveOccurred())

// Ensure an error is returned
Expect(err).Should(HaveOccurred())

// Ensure the error message contains the expected string
Expect(err.Error()).Should(ContainSubstring("8:2:expected token to be RELATION, PERMISSION, ATTRIBUTE, got IDENT instead"))
})

It("Case 26 - Multi-line Permission Complex Expression w/ Rule", func() {
It("Case 27 - Multi-line Permission Complex Expression w/ Rule", func() {
pr := NewParser(`
entity report {
relation parent @organization
Expand Down

0 comments on commit 0aa070c

Please sign in to comment.