Skip to content

Commit

Permalink
added more asserts for test of version_str_to_i method;
Browse files Browse the repository at this point in the history
removed the last new line;
  • Loading branch information
Ivan committed Aug 19, 2011
1 parent 05f078d commit 5336004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion test/helper.rb
Expand Up @@ -153,4 +153,3 @@ def assert_nothing_raised(*exceptions)
flunk(caller[1])
end
end

4 changes: 3 additions & 1 deletion test/helper_test.rb
@@ -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

0 comments on commit 5336004

Please sign in to comment.