Weird to be finding Parfait word bugs now

but index maths is also much easier 10th time around
This commit is contained in:
2019-09-08 21:14:54 +03:00
parent 6811fc4174
commit 7334e72458
2 changed files with 12 additions and 4 deletions

View File

@ -97,5 +97,12 @@ module Parfait
one = Parfait.new_word("one")
assert_raises {one.set_char(3 , "s".ord)}
end
def test_max
str = "123456789012345678901234"
one = Parfait.new_word(str)
assert_equal str , one.to_string
assert_equal 24 , one.length
end
end
end