From 8d7e3c6abac0227a6bdc4990893a3e740f9df795 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 5 Dec 2012 06:30:39 +0000 Subject: [PATCH] * 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 --- test/mkmf/test_have_func.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/mkmf/test_have_func.rb 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