test/match_test.rb in citrus-2.0.1 vs test/match_test.rb in citrus-2.1.1
- old
+ new
@@ -51,22 +51,6 @@
match = Words.parse('one two three four')
assert(match)
assert_equal(15, match.find(:alpha).length)
end
- def test_offset
- match = Words.parse('one two')
- assert(match)
- assert_equal(0, match.offset)
-
- words = match.find(:word)
- assert(match)
- assert_equal(2, words.length)
-
- assert_equal('one', words[0])
- assert_equal(0, words[0].offset)
-
- assert_equal('two', words[1])
- assert_equal(4, words[1].offset)
- end
-
end