forked from TwinEngineLabs-Engineering/redis-rb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added more asserts for test of version_str_to_i method;
removed the last new line;
- Loading branch information
Ivan
committed
Aug 19, 2011
1 parent
05f078d
commit 5336004
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,4 +153,3 @@ def assert_nothing_raised(*exceptions) | |
flunk(caller[1]) | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
require File.expand_path("./helper", File.dirname(__FILE__)) | ||
|
||
test "version_str_to_i" do | ||
assert_equal 200000, version_str_to_i('2.0.0') | ||
assert_equal 202020, version_str_to_i('2.2.2') | ||
assert_equal 202012, version_str_to_i('2.2.12') | ||
assert_equal 202022, version_str_to_i('2.2.22') | ||
assert_equal 222222, version_str_to_i('22.22.22') | ||
end |