summaryrefslogtreecommitdiffhomepage
path: root/test/t/syntax.rb
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-03-05 17:38:02 +0100
committercremno <[email protected]>2014-03-05 17:38:02 +0100
commit3900fcecd74ef0f97c602f57f4b9c4e7f9b275f5 (patch)
tree2db72bd16068d6891ecab9c7967d75c3d86d1eb6 /test/t/syntax.rb
parent2f20463b7746aefd7d5334166590bb633753ccdd (diff)
downloadmruby-3900fcecd74ef0f97c602f57f4b9c4e7f9b275f5.tar.gz
mruby-3900fcecd74ef0f97c602f57f4b9c4e7f9b275f5.zip
__FILE__ test: add support for \ as separator
Diffstat (limited to 'test/t/syntax.rb')
-rw-r--r--test/t/syntax.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb
index ee300c54d..3569193bc 100644
--- a/test/t/syntax.rb
+++ b/test/t/syntax.rb
@@ -1,9 +1,10 @@
assert('__FILE__') do
- assert_equal 'test/t/syntax.rb', __FILE__
+ file = __FILE__
+ assert_true 'test/t/syntax.rb' == file || 'test\t\syntax.rb' == file
end
assert('__LINE__') do
- assert_equal 6, __LINE__
+ assert_equal 7, __LINE__
end
assert('super', '11.3.4') do