fix amount parser
todo: private type
This commit is contained in:
parent
a04e179c08
commit
cdd6d5142b
2 changed files with 10 additions and 6 deletions
|
|
@ -32,4 +32,8 @@ let () =
|
|||
let s = to_string v in
|
||||
let v' = of_string s |> Result.get_ok in
|
||||
assert (v = v');
|
||||
let r = of_string {|~EUR:4.9|} in
|
||||
assert (Result.is_error r);
|
||||
let r = of_string {|+EUR:4.99999999999999999999999|} in
|
||||
assert (Result.is_error r);
|
||||
()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue