aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0000000000..8049ffba18
--- /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