diff options
author | Hailee Kenney <hailee@puppet.com> | 2017-03-03 16:40:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-03 16:40:32 +0000 |
commit | 01b951b4966c1fe150a160fdc8f4196b6e21ee51 (patch) | |
tree | 1643609784f5b46f3ef7ff1ca1c16e08b8c24d5f /spec/functions/concat_spec.rb | |
parent | 9e28f8f80ab512efff5eba4fecbaadb4220ca01c (diff) | |
parent | 2f463600c2c0b6ac95ec71d3e5b17d1b2abdcd22 (diff) |
Merge pull request #732 from pmcmaw/FM-6063-unitTests
(FM-6063) - Unit tests for high effort functions
Diffstat (limited to 'spec/functions/concat_spec.rb')
-rwxr-xr-x | spec/functions/concat_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/functions/concat_spec.rb b/spec/functions/concat_spec.rb index 0e67a60..6ab1b6e 100755 --- a/spec/functions/concat_spec.rb +++ b/spec/functions/concat_spec.rb @@ -11,8 +11,11 @@ describe 'concat' do it { is_expected.to run.with_params(['1','2','3'],[['4','5'],'6']).and_return(['1','2','3',['4','5'],'6']) } it { is_expected.to run.with_params(['1','2'],['3','4'],['5','6']).and_return(['1','2','3','4','5','6']) } it { is_expected.to run.with_params(['1','2'],'3','4',['5','6']).and_return(['1','2','3','4','5','6']) } + +context 'should run with UTF8 and double byte characters' do it { is_expected.to run.with_params([{"a" => "b"}], {"c" => "d", "e" => "f"}).and_return([{"a" => "b"}, {"c" => "d", "e" => "f"}]) } - it { is_expected.to run.with_params(['ấ','β','c'],['đ','ể','ƒ']).and_return(['ấ','β','c','đ','ể','ƒ']) } + it { is_expected.to run.with_params(['ấ','β','©'],['đ','ể','文字列']).and_return(['ấ','β','©','đ','ể','文字列']) } +end it "should leave the original array intact" do argument1 = ['1','2','3'] |