Skip to content

Commit

Permalink
tests: updated tests for hasentity rule
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 994865d4dde8f02e669cb63173dd1b63c4782c0e8dd4db4908b43449c2bc7de5
  • Loading branch information
thindil committed Feb 22, 2024
1 parent aa4f9be commit 34ab0fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions tests/hasentity.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ import utils/helpers
const
validOptions = @["nkProcDef", "MyProc"]
invalidOptions = @[""]
invalidNimCode = "quit"
validNimCode = "proc MyProc() = discard"

runRuleTest(disabledChecks = {fixTests})
runRuleTest(files = @["hasentity"], disabledChecks = {fixTests})
1 change: 1 addition & 0 deletions tests/invalid/hasentity.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
quit
1 change: 1 addition & 0 deletions tests/valid/hasentity.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
proc MyProc() = discard

0 comments on commit 34ab0fa

Please sign in to comment.