Test single tab is not continued

This commit is contained in:
Martin Carpenter 2011-09-10 10:39:05 +02:00
parent 41bee0a690
commit d2e00dfd58

View file

@ -42,6 +42,11 @@ class TestLdif < Test::Unit::TestCase
assert_equal(true, ds2.has_key?("abcdefghij klmn")) assert_equal(true, ds2.has_key?("abcdefghij klmn"))
end end
def test_ldif_tab_is_not_continuation
ds = Net::LDAP::Dataset::read_ldif(StringIO.new("dn: key\r\n\tnotcontinued\r\n\r\n"))
assert_equal(true, ds.has_key?("key"))
end
# TODO, INADEQUATE. We need some more tests # TODO, INADEQUATE. We need some more tests
# to verify the content. # to verify the content.
def test_ldif def test_ldif