Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion exercises/luhn/spec/luhn_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ describe "Luhn" do
Luhn.valid?("095 245 88").should eq(true)
end

pending "valid number with an odd number of spaces" do
Luhn.valid?("234 567 891 234").should eq(true)
end

pending "valid strings with a non-digit added at the end become invalid" do
Luhn.valid?("059a").should eq(false)
end
Expand All @@ -43,7 +47,7 @@ describe "Luhn" do
end

pending "valid strings with symbols included become invalid" do
Luhn.valid?("055£ 444$ 285").should eq(false)
Luhn.valid?("055# 444$ 285").should eq(false)
end

pending "single zero with space is invalid" do
Expand Down