You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, Unit.new("1:00") should return 1 h, but instead it actually returns:
irb(main):001> Unit.new("1:00")
/usr/local/bundle/gems/ruby-units-3.0.0/lib/ruby_units/unit.rb:1652:in `parse': '1:00' Unit not recognized (ArgumentError)
raise(ArgumentError, "'#{passed_unit_string}' Unit not recognized") unless used.empty?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered:
According to the docs,
Unit.new("1:00")
should return1 h
, but instead it actually returns:The text was updated successfully, but these errors were encountered: