diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-06 01:44:25 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-06 01:44:25 +0900 |
| commit | b8625bbc5ec17fbe47387ec2041b7f6299fb4565 (patch) | |
| tree | da85ae35e4cd2e13517e0310c70f465016a8f5b3 | |
| parent | 1bba236cb2bdfae97eb2fe9caf0be8222d0942b5 (diff) | |
| parent | 3900fcecd74ef0f97c602f57f4b9c4e7f9b275f5 (diff) | |
| download | mruby-b8625bbc5ec17fbe47387ec2041b7f6299fb4565.tar.gz mruby-b8625bbc5ec17fbe47387ec2041b7f6299fb4565.zip | |
Merge pull request #1814 from cremno/__file__-windows-paths
__FILE__ test: add support for \ as separator
| -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 |
