small word test

This commit is contained in:
Torsten Ruger
2016-12-31 15:17:45 +02:00
parent 47c0f62212
commit 7bb1c361a5
2 changed files with 13 additions and 2 deletions

View File

@ -162,7 +162,7 @@ module Parfait
# compare the word to another
# currently checks for same class, though really identity of the characters
# in right order would suffice
def == other
def compare( other )
return false if other.class != self.class
return false if other.length != self.length
len = self.length