Skip to content

Commit

Permalink
Test format_fixed_scientific for small numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Nov 27, 2020
1 parent b5c4e0d commit dd0d351
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ end
@test Showoff.format_fixed_scientific(NaN, 1, false) == "NaN"
@test Showoff.format_fixed_scientific(0.012345678, 4, true) == "12.346×10⁻³"
@test Showoff.format_fixed_scientific(0.012345678, 4, false) == "1.2346×10⁻²"
@test Showoff.format_fixed_scientific(2.99999999999999956E-16, 2, false) == "3.0×10⁻¹⁶"
@test Showoff.format_fixed_scientific(-10.0, 4, false) == "-1.000×10¹"
end

Expand Down

0 comments on commit dd0d351

Please sign in to comment.