Skip to content

Commit

Permalink
Add test for resolving currencies in an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Dec 3, 2021
1 parent 09f6597 commit a4cd215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/number/number_parser_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,9 @@ defmodule Cldr.Number.Parsing.Test do
scanned = Cldr.Number.Parser.scan( "Try Th CA$2is")
assert Cldr.Number.Parser.resolve_currencies(scanned) == [:TRY, " Th ", :CAD, 2, "is"]
end

test "Resolve currencies when the string is only whitespace" do
string = [" "]
assert Cldr.Number.Parser.resolve_currencies(string) == string
end
end

0 comments on commit a4cd215

Please sign in to comment.