Skip to content

Commit

Permalink
Extensibles - Add tests
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Jun 6, 2024
1 parent f33ff97 commit f87fc79
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/extensibleModule.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import voodoo/extensibles

type
Cardinal* {.extensible.} = enum
north, west
11 changes: 11 additions & 0 deletions tests/test2.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import unittest
import voodoo/extensibles

extendEnum Cardinal:
south
east

import ./extensibleModule

assert compiles Cardinal.south
assert compiles Cardinal.east

0 comments on commit f87fc79

Please sign in to comment.