diff options
author | Paula McMaw <paula@puppet.com> | 2017-03-03 15:25:53 +0000 |
---|---|---|
committer | Paula McMaw <paula@puppet.com> | 2017-03-03 15:33:37 +0000 |
commit | 2f463600c2c0b6ac95ec71d3e5b17d1b2abdcd22 (patch) | |
tree | 68ec310d43b889a5bb5ea7c9a551d4dd299ef1d0 /spec/functions/squeeze_spec.rb | |
parent | 2fa8b2b6387aa59d8cc10e521e069e02477a186b (diff) |
(FM-6063) - Unit tests for high effort functions
Diffstat (limited to 'spec/functions/squeeze_spec.rb')
-rwxr-xr-x | spec/functions/squeeze_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/functions/squeeze_spec.rb b/spec/functions/squeeze_spec.rb index 7f09c30..b267d9a 100755 --- a/spec/functions/squeeze_spec.rb +++ b/spec/functions/squeeze_spec.rb @@ -16,6 +16,12 @@ describe 'squeeze' do it { is_expected.to run.with_params('aaaaaaaaabbbbbbbbbbcccccccccc', 'b-c').and_return('aaaaaaaaabc') } end + context 'should run with UTF8 and double byte characters' do + it { is_expected.to run.with_params('ậậậậậậậậậậậậậậậậậậậậ').and_return('ậ') } + it { is_expected.to run.with_params('語語語語語語語', '語').and_return('語') } + it { is_expected.to run.with_params('ậậậậậậậậậậậậậậậậậ語語語語©©©©©', '©').and_return('ậậậậậậậậậậậậậậậậậ語語語語©') } + end + context 'when squeezing values in an array' do it { is_expected.to run \ |