summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-05 06:30:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-05 06:30:39 +0000
commit8d7e3c6abac0227a6bdc4990893a3e740f9df795 (patch)
treec8d54ef3666e025edc77da08289819cff8c3f4ff /test/mkmf
parent34dc263af894ece623b99f1138eccf4f5b806724 (diff)
* test/mkmf/test_have_func.rb: tests for have_func.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/test_have_func.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/mkmf/test_have_func.rb b/test/mkmf/test_have_func.rb
new file mode 100644
index 0000000..8049ffb
--- /dev/null
+++ b/test/mkmf/test_have_func.rb
@@ -0,0 +1,14 @@
+require_relative 'base'
+require 'tempfile'
+
+class TestMkmf
+ class TestHaveFunc < TestMkmf
+ def test_have_func
+ assert_equal(true, have_func("ruby_init"), MKMFLOG)
+ end
+
+ def test_not_have_func
+ assert_equal(false, have_func("no_ruby_init"), MKMFLOG)
+ end
+ end
+end