aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_versions.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb
index 5312bab67..e414054ef 100644
--- a/Library/Homebrew/test/test_versions.rb
+++ b/Library/Homebrew/test/test_versions.rb
@@ -27,6 +27,10 @@ class VersionComparisonTests < Test::Unit::TestCase
assert Version.new("1.0beta2").beta?
assert Version.new("1.0rc-1").rc?
end
+
+ def test_compare_patchlevel_to_non_patchlevel
+ assert_operator version('9.9.3-P1'), :>, version('9.9.3')
+ end
end
class VersionParsingTests < Test::Unit::TestCase