aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_stdlib.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-10-06 16:59:39 -0700
committerMisty De Meo2013-10-06 19:26:06 -0700
commit87b013719834ca5ae9241dd5fab5333e1f458aa6 (patch)
tree08882eb74bf9e19d89e4c07f5a9b00b9e1433b3e /Library/Homebrew/test/test_stdlib.rb
parent74ab0234223332585f9d249c8d55a33de60a9b4c (diff)
downloadbrew-87b013719834ca5ae9241dd5fab5333e1f458aa6.tar.bz2
CxxStdlib: allow for nil stdlibs
A nil stdlib value represents non-C++ code.
Diffstat (limited to 'Library/Homebrew/test/test_stdlib.rb')
-rw-r--r--Library/Homebrew/test/test_stdlib.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_stdlib.rb b/Library/Homebrew/test/test_stdlib.rb
index a5e276746..79af446d7 100644
--- a/Library/Homebrew/test/test_stdlib.rb
+++ b/Library/Homebrew/test/test_stdlib.rb
@@ -13,6 +13,7 @@ class CxxStdlibTests < Test::Unit::TestCase
@gcc48 = CxxStdlib.new(:libstdcxx, 'gcc-4.8')
@gcc49 = CxxStdlib.new(:libstdcxx, 'gcc-4.9')
@lcxx = CxxStdlib.new(:libcxx, :clang)
+ @purec = CxxStdlib.new(nil, :clang)
end
def test_apple_libstdcxx_intercompatibility
@@ -59,4 +60,8 @@ class CxxStdlibTests < Test::Unit::TestCase
assert_equal stdlib.compiler, :clang
assert_equal stdlib.type, :libstdcxx
end
+
+ def test_compatibility_for_non_cxx_software
+ assert @purec.compatible_with?(@clang)
+ end
end