Skip to content

Commit 7c570f7

Browse files
author
Peter Souter
committed
(MODULES-444) Acceptance test for primitives
`concat` should be able to concat arrays and primitives
1 parent ed192a0 commit 7c570f7

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
@@ -12,6 +12,17 @@
1212
}
1313
EOS
1414

15+
apply_manifest(pp, :catch_failures => true)
16+
end
17+
it 'should concat arrays and primitives to array' do
18+
pp = <<-EOS
19+
$output = concat(['1','2','3'],'4','5','6',['7','8','9'])
20+
validate_array($output)
21+
if size($output) != 9 {
22+
fail("${output} should have 9 elements.")
23+
}
24+
EOS
25+
1526
apply_manifest(pp, :catch_failures => true)
1627
end
1728
end

0 commit comments

Comments
 (0)