test/test_adapter.rb in activeldap-1.0.1 vs test/test_adapter.rb in activeldap-1.0.2
- old
+ new
@@ -9,10 +9,13 @@
def teardown
end
priority :must
def test_operator
+ assert_parse_filter("(uid=Alice)", ["uid", "=", "Alice"])
assert_parse_filter("(uid~=Alice)", ["uid", "~=", "Alice"])
+ assert_parse_filter("(uidNumber>=1000)", ["uidNumber", ">=", "1000"])
+ assert_parse_filter("(uidNumber<=1000)", ["uidNumber", "<=", "1000"])
assert_parse_filter("(&(uid~=Alice)(uid~=Bob))",
["uid", "~=", "Alice", "Bob"])
assert_parse_filter("(uid~=Alice)", [["uid", "~=", "Alice"]])
assert_parse_filter("(|(uid~=Alice)(uid~=Bob))",
[:or,