diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-12-02 13:42:06 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-12-02 13:42:06 +0200 |
commit | e8e66216f91d8f7941623038cedec678148a1dc4 (patch) | |
tree | b190a60f2da5556840741201d96ab46d63d8482f /t/01-unit.t | |
parent | 88b3d4dada94b96a036a2f1838b1213e04cfec5d (diff) | |
download | sbotools2-e8e66216f91d8f7941623038cedec678148a1dc4.tar.xz |
t/: add tests for #45.
Diffstat (limited to 't/01-unit.t')
-rwxr-xr-x | t/01-unit.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/01-unit.t b/t/01-unit.t index 13d6e8e..886e566 100755 --- a/t/01-unit.t +++ b/t/01-unit.t @@ -11,7 +11,7 @@ use Capture::Tiny qw/ capture_merged /; use File::Temp 'tempdir'; use Cwd; -plan tests => 60; +plan tests => 61; # 1-2: test script_error(); { @@ -319,6 +319,8 @@ SKIP: { local *SBO::Lib::Util::get_kernel_version = sub { "foo_bar" }; is (SBO::Lib::version_cmp('1.0', '1.0_foo_bar'), 0, "version_cmp(1.0, 1.0_foo_bar) returned 0"); + + is (SBO::Lib::version_cmp('1.0_en_US', '1.0'), 0, "version_cmp(1.0_en_US, 1.0) returned 0"); } # 60: test check_multilib(); |