implemented start_with along with tests

This commit is contained in:
chhavikirtani2000
2020-03-28 03:20:44 +05:30
committed by Torsten Rüger
parent 06944142d6
commit c477e90c45
2 changed files with 22 additions and 2 deletions

View File

@ -6,6 +6,11 @@ module Parfait
super
@word = Parfait::Word.new(5)
end
def test_start_with
assert_equal true , @word.start_with("hello","hell")
assert_equal true , @word.start_with("Adbfgsj","Adbf")
assert_equal false , @word.start_with("Vanila","van")
end
def test_len
assert_equal 5 , @word.length
end