@@ -362,7 +362,7 @@ fn index_sorting() {
362362 assert_eq ! ( json. crates[ 2 ] . name, "bar_sort" ) ;
363363 assert_eq ! ( json. crates[ 3 ] . name, "other_sort" ) ;
364364
365- //Sort by recent-updates
365+ // Sort by recent-updates
366366 let mut response = ok_resp ! ( middle. call( req. with_query( "sort=recent-updates" ) , ) ) ;
367367 let json: CrateList = :: json ( & mut response) ;
368368 assert_eq ! ( json. meta. total, 4 ) ;
@@ -372,8 +372,7 @@ fn index_sorting() {
372372 assert_eq ! ( json. crates[ 3 ] . name, "foo_sort" ) ;
373373
374374 // Test for bug with showing null results first when sorting
375- // by descending
376- // This has nothing to do with querying for exact match I'm sorry
375+ // by descending downloads
377376 let mut response = ok_resp ! ( middle. call( req. with_query( "sort=recent-downloads" ) ) ) ;
378377 let json: CrateList = :: json ( & mut response) ;
379378 assert_eq ! ( json. meta. total, 4 ) ;
@@ -477,7 +476,7 @@ fn exact_match_on_queries_with_sort() {
477476 assert_eq ! ( json. crates[ 1 ] . name, "foo_sort" ) ;
478477 assert_eq ! ( json. crates[ 2 ] . name, "baz_sort" ) ;
479478
480- //Sort by recent-updates
479+ // Sort by recent-updates
481480 let mut response = ok_resp ! ( middle. call( req. with_query( "q=bar_sort&sort=recent-updates" ) , ) ) ;
482481 let json: CrateList = :: json ( & mut response) ;
483482 assert_eq ! ( json. meta. total, 3 ) ;
@@ -486,8 +485,7 @@ fn exact_match_on_queries_with_sort() {
486485 assert_eq ! ( json. crates[ 2 ] . name, "foo_sort" ) ;
487486
488487 // Test for bug with showing null results first when sorting
489- // by descending
490- // This has nothing to do with querying for exact match I'm sorry
488+ // by descending downloads
491489 let mut response = ok_resp ! ( middle. call( req. with_query( "sort=recent-downloads" ) ) ) ;
492490 let json: CrateList = :: json ( & mut response) ;
493491 assert_eq ! ( json. meta. total, 4 ) ;
0 commit comments