diff options
| author | mimaki <[email protected]> | 2015-11-17 00:26:53 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-11-17 18:02:30 +0900 |
| commit | 22464fe5a0a10f2b077eaba109ce1e912e4a77de (patch) | |
| tree | a1048a97e635b9aa9661334c828c409b79417bcb /test/t/syntax.rb | |
| parent | 547a29d2cafcfe62e65290154f87371d190a501c (diff) | |
| download | mruby-22464fe5a0a10f2b077eaba109ce1e912e4a77de.tar.gz mruby-22464fe5a0a10f2b077eaba109ce1e912e4a77de.zip | |
mruby-1.2.01.2.0
Diffstat (limited to 'test/t/syntax.rb')
| -rw-r--r-- | test/t/syntax.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb index fb6ffe408..4ba171f9a 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -1,6 +1,6 @@ assert('__FILE__') do - file = __FILE__.split('test/')[1] - assert_true 't/syntax.rb' == file || 't\syntax.rb' == file + file = __FILE__[-9, 9] + assert_equal 'syntax.rb', file end assert('__LINE__') do |
