summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-03-03 22:23:00 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-03-03 22:23:00 +0000
commitf2ea9b7840adedcf3f99b222f6f8fa741ea64650 (patch)
treeb53d3b26de7e0d08234ca7d49407b15052909fc5 /test
parent1a3de8a45d71747978ce9cb1870b39a751352c02 (diff)
downloadpuppet-f2ea9b7840adedcf3f99b222f6f8fa741ea64650.tar.gz
puppet-f2ea9b7840adedcf3f99b222f6f8fa741ea64650.tar.xz
puppet-f2ea9b7840adedcf3f99b222f6f8fa741ea64650.zip
Supporting variables as the test value in both case statements and selectors.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@976 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/snippets.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb
index bba1537c2..a4090e7d2 100755
--- a/test/language/snippets.rb
+++ b/test/language/snippets.rb
@@ -253,6 +253,7 @@ class TestSnippets < Test::Unit::TestCase
/tmp/existsfile2
/tmp/existsfile3
/tmp/existsfile4
+ /tmp/existsfile5
}
files.each { |file|
@@ -331,7 +332,7 @@ class TestSnippets < Test::Unit::TestCase
end
def snippet_selectorvalues(trans)
- nums = %w{1 2 3}
+ nums = %w{1 2 3 4 5}
files = nums.collect { |n|
"/tmp/selectorvalues%s" % n
}