Skip to content

Commit

Permalink
tests: added testing code for objects rule
Browse files Browse the repository at this point in the history
FossilOrigin-Name: a10131e5083d5ee605c97a663197069cfc996a13cde1b695fd97ba18b1ea8143
  • Loading branch information
thindil committed Apr 1, 2024
1 parent b726b9e commit e7aba23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/invalid/objects.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Count: 1
# Negative count: 0

type test = object
a*: string
b: int
6 changes: 6 additions & 0 deletions tests/valid/objects.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Count: 1
# Negative count: 0

type test = object
a: string
b: int

0 comments on commit e7aba23

Please sign in to comment.