lib/nanotest.rb in nanotest-0.9 vs lib/nanotest.rb in nanotest-0.9.1
- old
+ new
@@ -5,10 +5,10 @@
def assert(msg="assertion failed",file=nil,line=nil,&block)
if block.call == false
file ||= caller.first.split(':')[0]
line ||= caller.first.split(':')[1]
- FAILURES << "(#{file}:#{line}) #{msg}"
+ FAILURES << "(%s:%0.3d) %s" % [file,line,msg]
print 'F'
else
print '.'
end
end