Skip to content

Commit

Permalink
tests: updated the test code for hasPragma rule
Browse files Browse the repository at this point in the history
FossilOrigin-Name: d028f9604918c1de4485449dcc7fdf32af06fd0c77d564ec06e60aedd51eb6b4
  • Loading branch information
thindil committed Dec 7, 2024
1 parent 8882f57 commit faee1f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions tests/invalid/haspragma.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Count: 0
# Negative count: 1
# Negative count: 2

proc MyProc() = discard
proc MyProc(a: int)

proc MyProc(a: int) =
discard

proc MyProc2(a: int) =
discard
10 changes: 8 additions & 2 deletions tests/valid/haspragma.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Count: 1
# Count: 2
# Negative count: 0

proc MyProc() {.raises: [].} = discard
proc MyProc(a: int) {.raises: [].}

proc MyProc(a: int) =
discard

proc MyProc2(a: int) {.raises: [].}=
discard

0 comments on commit faee1f4

Please sign in to comment.