inet6_prefix() - add test with prefix in input
Extend the unit tests of the inet6_prefix() function to test input including the prefix ('inet6:[2001::01]:80'). Change-Id: I68ead773868bd418f10a480f2b7b7fc08084374e
This commit is contained in:
parent
1f13d87fdf
commit
7d0f1b785d
@ -8,6 +8,7 @@ describe 'inet6_prefix' do
|
||||
it { should run.with_params('[::1]:80').and_return('inet6:[::1]:80')}
|
||||
it { should run.with_params('[2001::01]').and_return('inet6:[2001::01]')}
|
||||
it { should run.with_params('[2001::01]:80').and_return('inet6:[2001::01]:80')}
|
||||
it { should run.with_params('inet6:[2001::01]:80').and_return('inet6:[2001::01]:80')}
|
||||
# You're not forced to pass an array, a list of argument will do.
|
||||
it { should run.with_params('::1','::2').and_return(['inet6:[::1]','inet6:[::2]'])}
|
||||
it { should run.with_params(['::1','::2']).and_return(['inet6:[::1]','inet6:[::2]'])}
|
||||
|
Loading…
x
Reference in New Issue
Block a user