summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-12 14:17:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-12 14:17:54 +0000
commit7f46fadd9d7f8ee32d9837a67e212f55e23666b8 (patch)
tree33a1f8e8f60c309d3752134ff3c6fea6401b2773 /test/mkmf
parent58b325366dbc5c84be12fb336ee5e68f208d9365 (diff)
* lib/test/unit.rb (assert_include): add alias.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/test_convertible.rb8
-rw-r--r--test/mkmf/test_signedness.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/mkmf/test_convertible.rb b/test/mkmf/test_convertible.rb
index 539998a..3ad36b3 100644
--- a/test/mkmf/test_convertible.rb
+++ b/test/mkmf/test_convertible.rb
@@ -21,10 +21,10 @@ class TestMkmf
assert_equal((prefix || signed)+type,
mkmf {convertible_int("test1_t", "confdefs.h")}, MKMFLOG)
(u = signed[/^u/]) and u.upcase!
- assert_includes($defs, "-DTYPEOF_TEST1_T="+"#{prefix||signed}#{type}".quote)
- assert_includes($defs, "-DPRI_TEST1T_PREFIX=PRI_#{type.upcase}_PREFIX")
- assert_includes($defs, "-DTEST1T2NUM=#{u}#{type.upcase}2NUM")
- assert_includes($defs, "-DNUM2TEST1T=NUM2#{u}#{type.upcase}")
+ assert_include($defs, "-DTYPEOF_TEST1_T="+"#{prefix||signed}#{type}".quote)
+ assert_include($defs, "-DPRI_TEST1T_PREFIX=PRI_#{type.upcase}_PREFIX")
+ assert_include($defs, "-DTEST1T2NUM=#{u}#{type.upcase}2NUM")
+ assert_include($defs, "-DNUM2TEST1T=NUM2#{u}#{type.upcase}")
end
end
end
diff --git a/test/mkmf/test_signedness.rb b/test/mkmf/test_signedness.rb
index 97fc107..ad0495a 100644
--- a/test/mkmf/test_signedness.rb
+++ b/test/mkmf/test_signedness.rb
@@ -19,7 +19,7 @@ class TestMkmf
}
$defs.clear
assert_equal(expect.to_i, mkmf {check_signedness("test1_t", "confdefs.h")}, MKMFLOG)
- assert_includes($defs, "-DSIGNEDNESS_OF_TEST1_T=#{expect}")
+ assert_include($defs, "-DSIGNEDNESS_OF_TEST1_T=#{expect}")
end
end
end