|
|
433bc1 |
diff --git a/test/test-main.rb b/test/test-main.rb
|
|
|
433bc1 |
index eca7b21..eed7e51 100644
|
|
|
433bc1 |
--- a/test/test-main.rb
|
|
|
433bc1 |
+++ b/test/test-main.rb
|
|
|
433bc1 |
@@ -273,7 +273,7 @@ END
|
|
|
433bc1 |
errmsgs << <<'END'
|
|
|
433bc1 |
7: syntax error, unexpected $end, expecting keyword_end
|
|
|
433bc1 |
END
|
|
|
433bc1 |
- elsif ruby20? || ruby21? || ruby22?
|
|
|
433bc1 |
+ elsif ruby20? || ruby21? || ruby22? || ruby23?
|
|
|
433bc1 |
errmsgs << <<'END'
|
|
|
433bc1 |
3: syntax error, unexpected ']', expecting ')'
|
|
|
433bc1 |
_buf << ' '; _buf << ( item[:name]] ).to_s; _buf << '
|
|
|
433bc1 |
diff --git a/test/test-users-guide.rb b/test/test-users-guide.rb
|
|
|
433bc1 |
index af6c006..620a556 100644
|
|
|
433bc1 |
--- a/test/test-users-guide.rb
|
|
|
433bc1 |
+++ b/test/test-users-guide.rb
|
|
|
433bc1 |
@@ -28,7 +28,7 @@ class KwarkUsersGuideTest < Test::Unit::TestCase
|
|
|
433bc1 |
s =~ /\A\$ (.*?)\n/
|
|
|
433bc1 |
command = $1
|
|
|
433bc1 |
expected = $'
|
|
|
433bc1 |
- if ruby19? || ruby20? || ruby21? || ruby22?
|
|
|
433bc1 |
+ if ruby19? || ruby20? || ruby21? || ruby22? || ruby23?
|
|
|
433bc1 |
case @name
|
|
|
433bc1 |
when 'test_main_program1_result'
|
|
|
433bc1 |
expected.sub!('["eruby", "items", "x", "_buf"]', '[:_buf, :eruby, :items, :x]')
|
|
|
433bc1 |
diff --git a/test/testutil.rb b/test/testutil.rb
|
|
|
433bc1 |
index e9130b7..13db7d5 100644
|
|
|
433bc1 |
--- a/test/testutil.rb
|
|
|
433bc1 |
+++ b/test/testutil.rb
|
|
|
433bc1 |
@@ -29,6 +29,10 @@ def ruby22? # :nodoc:
|
|
|
433bc1 |
RUBY_VERSION =~ /\A2.2/
|
|
|
433bc1 |
end
|
|
|
433bc1 |
|
|
|
433bc1 |
+def ruby23? # :nodoc:
|
|
|
433bc1 |
+ RUBY_VERSION =~ /\A2.3/
|
|
|
433bc1 |
+end
|
|
|
433bc1 |
+
|
|
|
433bc1 |
def rubinius? # :nodoc:
|
|
|
433bc1 |
defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx"
|
|
|
433bc1 |
end
|