ruby_marks 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|
|