diff options
| author | cremno <[email protected]> | 2014-03-05 17:38:02 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-03-05 17:38:02 +0100 |
| commit | 3900fcecd74ef0f97c602f57f4b9c4e7f9b275f5 (patch) | |
| tree | 2db72bd16068d6891ecab9c7967d75c3d86d1eb6 /test | |
| parent | 2f20463b7746aefd7d5334166590bb633753ccdd (diff) | |
| download | mruby-3900fcecd74ef0f97c602f57f4b9c4e7f9b275f5.tar.gz mruby-3900fcecd74ef0f97c602f57f4b9c4e7f9b275f5.zip | |
__FILE__ test: add support for \ as separator
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/syntax.rb | 5 |
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 |
