diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-04-03 21:38:47 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-04-14 19:06:28 +0900 |
| commit | 716a99b069461b11c2b46099119f8578cd2c8f3f (patch) | |
| tree | cea958ad993ca9547c81a00d8630329ca05f5c66 /test/t/module.rb | |
| parent | 73feef9766c56c123039392adb0c516d9aafb02e (diff) | |
| download | mruby-716a99b069461b11c2b46099119f8578cd2c8f3f.tar.gz mruby-716a99b069461b11c2b46099119f8578cd2c8f3f.zip | |
Add `assert_match` and `assert_not_match`
Diffstat (limited to 'test/t/module.rb')
| -rw-r--r-- | test/t/module.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/t/module.rb b/test/t/module.rb index ec36855e8..1694ef577 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -640,11 +640,8 @@ assert('Module#to_s') do assert_equal 'SetOuter', SetOuter.to_s assert_equal 'SetOuter::SetInner', SetOuter::SetInner.to_s - mod = Module.new - cls = Class.new - - assert_equal "#<Module:0x", mod.to_s[0,11] - assert_equal "#<Class:0x", cls.to_s[0,10] + assert_match "#<Module:0x*>", Module.new.to_s + assert_match "#<Class:0x*>", Class.new.to_s end assert('Module#inspect') do |
