summaryrefslogtreecommitdiff
path: root/jni/ruby/test/mkmf/test_have_func.rb
blob: 8049ffba182c87da995d475e8f1f4a7dab9ab7ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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