diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-17 21:43:51 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-17 21:43:51 +0000 |
| commit | eed85f41ffc31649032114b7aa89a541d239a257 (patch) | |
| tree | 72b83438166fec47d107fa6d2c98261bfde76f60 /test/language/parser.rb | |
| parent | 8410c4dc5bfbb450ea740be42e0f0d712bf86e7a (diff) | |
| download | puppet-eed85f41ffc31649032114b7aa89a541d239a257.tar.gz puppet-eed85f41ffc31649032114b7aa89a541d239a257.tar.xz puppet-eed85f41ffc31649032114b7aa89a541d239a257.zip | |
Adding #629 -- an undef keyword now exists
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2522 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/language/parser.rb')
| -rwxr-xr-x | test/language/parser.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/language/parser.rb b/test/language/parser.rb index ce54efc7e..e4b913ab8 100755 --- a/test/language/parser.rb +++ b/test/language/parser.rb @@ -763,6 +763,19 @@ file { "/tmp/yayness": parser.import("%s/*" % dir) end end + + # #629 - undef keyword + def test_undef + parser = mkparser + result = nil + assert_nothing_raised("Could not parse assignment to undef") { + result = parser.parse %{$variable = undef} + } + + children = result.children + assert_instance_of(AST::VarDef, result.children[0]) + assert_instance_of(AST::Undef, result.children[0].value) + end end # $Id$ |
