Add more tests for enum
This commit is contained in:
parent
204cf62c9c
commit
f69523ff9c
4 changed files with 6 additions and 0 deletions
1
tests/generators/nim/test_enum_var_decl.c
Normal file
1
tests/generators/nim/test_enum_var_decl.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
enum color { RED, GREEN, BLUE} thecolor = RED;
|
||||
2
tests/generators/nim/test_enum_var_decl.nim
Normal file
2
tests/generators/nim/test_enum_var_decl.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
type color = enum RED, GREEN, BLUE
|
||||
var thecolor: color = RED
|
||||
1
tests/generators/nim/test_enum_var_decl_no_default.c
Normal file
1
tests/generators/nim/test_enum_var_decl_no_default.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
enum color { RED, GREEN, BLUE} thecolor;
|
||||
2
tests/generators/nim/test_enum_var_decl_no_default.nim
Normal file
2
tests/generators/nim/test_enum_var_decl_no_default.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
type color = enum RED, GREEN, BLUE
|
||||
var thecolor: color
|
||||
Loading…
Add table
Add a link
Reference in a new issue