From 6f395a58d2a1f2e5fdfaf2933ee2e80d10abfd30 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Sat, 5 Jan 2019 20:41:09 +0900 Subject: Add `assert_same` and `assert_not_same` --- test/t/string.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/t/string.rb') diff --git a/test/t/string.rb b/test/t/string.rb index 8f008c6a7..e0f0eb99c 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -579,7 +579,7 @@ assert('String#sub', '15.2.10.5.36') do str = "abc" miss = str.sub("X", "Z") assert_equal str, miss - assert_not_equal str.object_id, miss.object_id + assert_not_same str, miss a = [] assert_equal '.abc', "abc".sub("") { |i| a << i; "." } -- cgit v1.2.3