make test/assert.rb cruby compatible

This commit is contained in:
fleuria
2013-11-16 14:22:15 +08:00
parent 2bda965258
commit 0a4010728a
+3 -2
View File
@@ -9,10 +9,11 @@ def t_print(*args)
i = 0
len = args.size
while i < len
str = args[i].to_s
begin
__printstr__ args[i].to_s
__printstr__ str
rescue NoMethodError
__t_printstr__ args[i].to_s
__t_printstr__ str rescue print str
end
i += 1
end