Permalink
Browse files

Fix the bug exposed by 0fe276e.

  • Loading branch information...
1 parent 6bf8979 commit 4c0abff63f2ffc4b6ed0997238d876f371f3b64a @arthurschreiber committed Apr 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ruby/lib/version_space.rb
@@ -48,7 +48,7 @@ def negative_example(example)
@g = @g.inject([]) do |acc, g|
if !more_general?(g, example)
acc << g
- else
+ elsif !@s.empty?
specialize(g, example, @s.first).each do |new_g|
next if more_general?(new_g, example)

0 comments on commit 4c0abff

Please sign in to comment.