Permalink
Browse files

[spec] added a test for empty enums

git-svn-id: http://svn.pugscode.org/pugs@25120 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 3ad9371 commit 935a0b3ae0e5f7faa9112c2c29eec23d80e63e9c s1n committed Jan 30, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 S12-enums/basic.t
View
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 9;
+plan 10;
# Very basic enum tests
@@ -28,3 +28,5 @@ enum JustOne <Thing>;
{
is JustOne::Thing, 0, 'Enum of one element works.';
}
+
+lives_ok { enum Empty <> }, "empty enum can be constructed";

0 comments on commit 935a0b3

Please sign in to comment.