Use a string as a common regexp representation; ref #4847

This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-11-30 21:10:36 +09:00
parent 25b5b79cc3
commit ef95a9fa93
+1 -1
View File
@@ -129,7 +129,7 @@ assert('mruby -r option (file not found)') do
end
assert('mruby -v option') do
ver_re = /\Amruby \d+\.\d+\.\d+ \(\d+-\d+-\d+\)\n/
ver_re = '\Amruby \d+\.\d+\.\d+ \(\d+-\d+-\d+\)\n'
assert_mruby(/#{ver_re}\z/, "", true, %w[-v])
assert_mruby(/#{ver_re}^[^\n]*NODE.*\n:end\n\z/m, "", true, %w[-v -e p(:end)])
end