aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-04-06 00:08:23 -0500
committerJack Nagel2012-04-06 00:08:23 -0500
commit28a2dfd8b6fa0225bc6cc8d196652ec0c87e39b9 (patch)
tree2df9f229a853e6eac4061b802b73aba0f4ddb723 /Library
parent2c8f9a6a0d35433e0e1d47b4c586b6e12a9a28f3 (diff)
downloadhomebrew-28a2dfd8b6fa0225bc6cc8d196652ec0c87e39b9.tar.bz2
Add test for ghc version style
the ghc formula had an explicit version because we had trouble parsing the version from the 64-bit URL. It is working now, so add a test to ensure it isn't broken in the future. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_versions.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb
index 9b916fa3a..44058b70a 100644
--- a/Library/Homebrew/test/test_versions.rb
+++ b/Library/Homebrew/test/test_versions.rb
@@ -193,6 +193,11 @@ class VersionTests < Test::Unit::TestCase
check 'http://www.antlr.org/download/antlr-3.4-complete.jar', '3.4'
end
+ def check_ghc_style
+ check 'http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-x86_64-apple-darwin.tar.bz2', '7.0.4'
+ check 'http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-i386-apple-darwin.tar.bz2', '7.0.4'
+ end
+
def test_more_versions
check 'http://pypy.org/download/pypy-1.4.1-osx.tar.bz2', '1.4.1'
check 'http://www.openssl.org/source/openssl-0.9.8s.tar.gz', '0.9.8s'