summaryrefslogtreecommitdiffhomepage
path: root/test/t/syntax.rb
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-02-26 02:43:31 +0900
committertake_cheeze <[email protected]>2014-02-26 21:11:33 +0900
commitd31f824b5a68ee30f3899194a5a4a2cd716263c8 (patch)
treed22aac8fdafa93c2e5dc2b710c5ee73f9496873f /test/t/syntax.rb
parente203383d98a128ab57e013312eaa48c9a8a53564 (diff)
downloadmruby-d31f824b5a68ee30f3899194a5a4a2cd716263c8.tar.gz
mruby-d31f824b5a68ee30f3899194a5a4a2cd716263c8.zip
add test for __LINE__ and __FILE__
Diffstat (limited to 'test/t/syntax.rb')
-rw-r--r--test/t/syntax.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb
index 13cd1198e..ee300c54d 100644
--- a/test/t/syntax.rb
+++ b/test/t/syntax.rb
@@ -1,3 +1,11 @@
+assert('__FILE__') do
+ assert_equal 'test/t/syntax.rb', __FILE__
+end
+
+assert('__LINE__') do
+ assert_equal 6, __LINE__
+end
+
assert('super', '11.3.4') do
assert_raise NoMethodError do
super