Skip to content

Commit

Permalink
Added tests for MakeMakefile#test_egrep_cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Feb 5, 2021
1 parent 0acc05c commit 7baedef
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/mkmf/test_egrep_cpp.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: false
require_relative 'base'
require 'tempfile'

class TestMkmf
class TestEgrepCpp < TestMkmf
def test_egrep_cpp
assert_equal(true, egrep_cpp(/ruby_init/, ""), MKMFLOG)
end

def test_not_have_func
assert_equal(false, egrep_cpp(/never match/, ""), MKMFLOG)
end
end
end

0 comments on commit 7baedef

Please sign in to comment.