- isSet( $links.slice(1,2), q("groups"), "slice(1,2)" );
- isSet( $links.slice(1), q("groups", "anchor1", "mark"), "slice(1)" );
- isSet( $links.slice(0,3), q("google", "groups", "anchor1"), "slice(0,3)" );
- isSet( $links.slice(-1), q("mark"), "slice(-1)" );
+ same( $links.slice(1,2).get(), q("groups"), "slice(1,2)" );
+ same( $links.slice(1).get(), q("groups", "anchor1", "mark"), "slice(1)" );
+ same( $links.slice(0,3).get(), q("google", "groups", "anchor1"), "slice(0,3)" );
+ same( $links.slice(-1).get(), q("mark"), "slice(-1)" );
+
+ same( $links.eq(1).get(), q("groups"), "eq(1)" );
+ same( $links.eq('2').get(), q("anchor1"), "eq('2')" );
+ same( $links.eq(-1).get(), q("mark"), "eq(-1)" );
+});
+
+test("first()/last()", function() {
+ expect(4);
+
+ var $links = jQuery("#ap a"), $none = jQuery("asdf");