Sha256: 39557a6079b99592ef0090f57e6aee8784836f9d182383ed3d15fbfd47a76b42
Contents?: true
Size: 327 Bytes
Versions: 2
Compression:
Stored size: 327 Bytes
Contents
$LOAD_PATH.unshift File.dirname(__FILE__) require "helper" Utils = Phys::Unit::Utils describe "UnitUtils test" do describe Utils.num_inspect(Rational(1609344,1000)) do it {is_expected.to eq "1609.344"} end describe Utils.num_inspect(Rational(1000,1609344)) do it {is_expected.to eq "(1/1609.344)"} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phys-units-0.9.9 | spec/utils_spec.rb |
phys-units-0.9.8 | spec/utils_spec.rb |