Skip to content

Commit 5e49c50

Browse files
author
Peter Souter
committed
(MODULES-444) Acceptance for multiple arrays
Acceptance test to take multiple arrays for concatenation
1 parent 7c570f7 commit 5e49c50

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

spec/acceptance/concat_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323
}
2424
EOS
2525

26+
apply_manifest(pp, :catch_failures => true)
27+
end
28+
it 'should concat multiple arrays to one' do
29+
pp = <<-EOS
30+
$output = concat(['1','2','3'],['4','5','6'],['7','8','9'])
31+
validate_array($output)
32+
if size($output) != 6 {
33+
fail("${output} should have 9 elements.")
34+
}
35+
EOS
36+
2637
apply_manifest(pp, :catch_failures => true)
2738
end
2839
end

0 commit comments

Comments
 (0)