From d3ba9723b244fc52b0b20b1cffa88d71700e6b92 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 6 Apr 2012 00:08:23 -0500 Subject: [PATCH] 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 --- Library/Homebrew/test/test_versions.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb index 9b916fa3a7..44058b70a0 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'