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/is_mac_address_spec.rb | |
parent | 2fa8b2b6387aa59d8cc10e521e069e02477a186b (diff) |
(FM-6063) - Unit tests for high effort functions
Diffstat (limited to 'spec/functions/is_mac_address_spec.rb')
-rwxr-xr-x | spec/functions/is_mac_address_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/functions/is_mac_address_spec.rb b/spec/functions/is_mac_address_spec.rb index 5f76a91..c1e33b8 100755 --- a/spec/functions/is_mac_address_spec.rb +++ b/spec/functions/is_mac_address_spec.rb @@ -9,6 +9,12 @@ describe 'is_mac_address' do it { is_expected.to run.with_params('00:00:00:00:00:0g').and_return(false) } it { is_expected.to run.with_params('').and_return(false) } it { is_expected.to run.with_params('one').and_return(false) } + + context 'function can handle UTF8 and double byte characters' do + it { is_expected.to run.with_params('ƒốưř').and_return(false) } + it { is_expected.to run.with_params('三+').and_return(false) } + end + it { pending "should properly typecheck its arguments" is_expected.to run.with_params(1).and_return(false) |