ruby_marks 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -97,8 +97,8 @@ module RubyMarks
|
|
97
97
|
multiple_marked_found = true if marks[line].size > 1
|
98
98
|
unmarked_group_found = true if marks[line].empty?
|
99
99
|
end
|
100
|
-
|
101
|
-
result[group.label.to_sym] = marks
|
100
|
+
|
101
|
+
result[group.label.to_sym] = marks
|
102
102
|
end
|
103
103
|
|
104
104
|
raise_watcher :scan_unmarked_watcher, result if unmarked_group_found
|
data/lib/ruby_marks/version.rb
CHANGED
@@ -130,7 +130,12 @@ class RubyMarks::RecognizerTest < Test::Unit::TestCase
|
|
130
130
|
4 => ['D']
|
131
131
|
}
|
132
132
|
}
|
133
|
-
|
133
|
+
result = @recognizer.scan
|
134
|
+
result.each_pair do |group, lines|
|
135
|
+
lines.delete_if { |line, value| value.empty? }
|
136
|
+
end
|
137
|
+
result.delete_if { |group, lines| lines.empty? }
|
138
|
+
assert_equal expected_hash, result
|
134
139
|
end
|
135
140
|
|
136
141
|
|