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/range_spec.rb | |
parent | 2fa8b2b6387aa59d8cc10e521e069e02477a186b (diff) |
(FM-6063) - Unit tests for high effort functions
Diffstat (limited to 'spec/functions/range_spec.rb')
-rwxr-xr-x | spec/functions/range_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/functions/range_spec.rb b/spec/functions/range_spec.rb index 492cad4..ca569d5 100755 --- a/spec/functions/range_spec.rb +++ b/spec/functions/range_spec.rb @@ -79,6 +79,14 @@ describe 'range' do it { is_expected.to run.with_params('01', '04').and_return([1, 2, 3, 4]) } end + context 'with prefixed numbers as utf8 strings as bounds' do + it { is_expected.to run.with_params('ħөŝŧ01', 'ħөŝŧ04').and_return(['ħөŝŧ01', 'ħөŝŧ02', 'ħөŝŧ03', 'ħөŝŧ04']) } + end + + context 'with prefixed numbers as double byte character strings as bounds' do + it { is_expected.to run.with_params('ホスト01', 'ホスト04').and_return(['ホスト01', 'ホスト02', 'ホスト03', 'ホスト04']) } + end + context 'with dash-range syntax' do it { is_expected.to run.with_params('4-1').and_return([]) } it { is_expected.to run.with_params('1-1').and_return([1]) } |