Update Float.parse example to actually parse a float

This commit is contained in:
Jay Hayes
2016-06-13 09:13:27 -05:00
parent 4674b5b694
commit 2127c9ea27
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ defmodule Numbers do
end
koan "Hmm, I want to parse this but it has some strings" do
assert Float.parse("1 million dollars") == {___, " million dollars"}
assert Float.parse("1.5 million dollars") == {___, " million dollars"}
end
koan "I don't want this decimal point, let's round up" do

View File

@@ -12,7 +12,7 @@ defmodule NumbersTests do
"1234",
42,
34.5,
1.0,
1.5,
35.0,
34.3,
99.0,