Fixed tests for gt/lt
[jquery.git] / src / jquery / coreTest.js
index ed7b52b..d8328c9 100644 (file)
@@ -644,7 +644,7 @@ test("empty()", function() {
 \r
 test("eq(), gt(), lt(), contains()", function() {\r
        ok( $("#ap a").eq(1)[0].id == "groups", "eq()" );\r
-       ok( $("#ap a").gt(1).get(), q("groups", "anchor1", "mark"), "gt()" );\r
-       ok( $("#ap a").lt(2).get(), q("google", "groups", "anchor1"), "lt()" );\r
-       ok( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" );\r
+       isSet( $("#ap a").gt(0).get(), q("groups", "anchor1", "mark"), "gt()" );\r
+       isSet( $("#ap a").lt(3).get(), q("google", "groups", "anchor1"), "lt()" );\r
+       isSet( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" );\r
 });
\ No newline at end of file