Skip to content

Commit

Permalink
test: fix like_operator_outside_orm_error.vv/.out
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Aug 20, 2024
1 parent cf0fb83 commit d56d230
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions vlib/v/checker/tests/like_operator_outside_orm_error.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
vlib/v/checker/tests/like_operator_outside_orm_error.vv:4:15: error: unexpected name `like`, expecting `)`
vlib/v/checker/tests/like_operator_outside_orm_error.vv:3:14: error: only `c`, `r`, `js` are recognized string prefixes, but you tried to use `like`
1 | fn main() {
2 | name := 'Luke'
3 |
4 | println(name like 'L%')
| ~~~~
3 | ret := name like 'L%'
| ~~~~
4 | println(ret)
5 | }
4 changes: 2 additions & 2 deletions vlib/v/checker/tests/like_operator_outside_orm_error.vv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn main() {
name := 'Luke'

println(name like 'L%')
ret := name like 'L%'
println(ret)
}

0 comments on commit d56d230

Please sign in to comment.