test/test_mkmf_lite.rb in mkmf-lite-0.2.0 vs test/test_mkmf_lite.rb in mkmf-lite-0.2.1
- old
+ new
@@ -10,21 +10,21 @@
class TC_Mkmf_Lite < Test::Unit::TestCase
include Mkmf::Lite
def self.startup
- @@windows = Config::CONFIG['host_os'] =~ /mswin|msdos|win32|mingw|cygwin/i
+ @@windows = File::ALT_SEPARATOR
end
def setup
@st_type = 'struct stat'
@st_member = 'st_uid'
- @st_header = 'sys/stat.h'
+ @st_header = 'sys/stat.h'
end
test "version information" do
- assert_equal('0.2.0', MKMF_LITE_VERSION)
+ assert_equal('0.2.1', MKMF_LITE_VERSION)
end
test "have_header basic functionality" do
assert_respond_to(self, :have_header)
end
@@ -43,10 +43,10 @@
assert_respond_to(self, :have_func)
end
test "have_func with no arguments returns expected boolean value" do
assert_true(have_func('abort'))
- assert_false(have_header('abortxyz'))
+ assert_false(have_func('abortxyz'))
end
test "have_func with arguments returns expected boolean value" do
assert_true(have_func('printf', 'stdio.h'))
assert_false(have_func('printfx', 'stdio.h'))