Permalink
Browse files

make test/assert.rb cruby compatible

  • Loading branch information...
1 parent 2bda965 commit 0a4010728a85669c8f6ea4fffa53cc303f11c68a @Fleurer Fleurer committed Nov 16, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/assert.rb
View
@@ -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

0 comments on commit 0a40107

Please sign in to comment.