Permalink
Browse files

wrong AND operator

  • Loading branch information...
1 parent 5c77606 commit 781280380df70034689eeff1aad6b0f2aced16d2 @rmeritz committed Feb 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 verbs.rb
View
@@ -34,10 +34,10 @@
end
def grupp1?(verb_hash)
- (verb_hash[:grundform] =~ /a$/) &
- (verb_hash[:grundform]+"r" == verb_hash[:presens]) &
- (verb_hash[:grundform]+"de" == verb_hash[:preteritum]) &
- (verb_hash[:grundform]+"t" == verb_hash[:prefekt]) &
+ (verb_hash[:grundform] =~ /a$/) &&
+ (verb_hash[:grundform]+"r" == verb_hash[:presens]) &&
+ (verb_hash[:grundform]+"de" == verb_hash[:preteritum]) &&
+ (verb_hash[:grundform]+"t" == verb_hash[:prefekt]) &&
(if verb_hash[:imperativ] != "---"
verb_hash[:grundform]+"!" == verb_hash[:imperativ]
end)

0 comments on commit 7812803

Please sign in to comment.