Skip to content

Commit

Permalink
fix incorrect test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewilliamboswell committed Jan 8, 2025
1 parent ec07057 commit 435df2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Json.roc
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ expect
actual = Str.toUtf8 "12.34e-5" |> Decode.fromBytesPartial utf8
numStr = actual.result |> Result.map Num.toStr

Result.withDefault numStr "" == "0.00012339999375399202"
Result.withDefault numStr "" == "0.0001234"

decodeF64 = Decode.custom \bytes, @Json {} ->
{ taken, rest } = takeJsonNumber bytes
Expand Down

0 comments on commit 435df2b

Please sign in to comment.