spec/cmd_parser_spec.rb in knjrbfw-0.0.74 vs spec/cmd_parser_spec.rb in knjrbfw-0.0.75
- old
+ new
@@ -16,10 +16,10 @@
strs.each do |str|
res = Knj::Cmd_parser.lsl(str)
res.each do |file|
- raise "Byte was not numeric in: '#{str}'." if !Php4r.is_numeric(file[:size])
+ raise "Byte was not numeric in: '#{str}'." if !(Float(file[:size]) rescue false)
end
end
end
end
\ No newline at end of file