@@ -362,7 +362,7 @@ fn index_sorting() {
362
362
assert_eq ! ( json. crates[ 2 ] . name, "bar_sort" ) ;
363
363
assert_eq ! ( json. crates[ 3 ] . name, "other_sort" ) ;
364
364
365
- //Sort by recent-updates
365
+ // Sort by recent-updates
366
366
let mut response = ok_resp ! ( middle. call( req. with_query( "sort=recent-updates" ) , ) ) ;
367
367
let json: CrateList = :: json ( & mut response) ;
368
368
assert_eq ! ( json. meta. total, 4 ) ;
@@ -372,8 +372,7 @@ fn index_sorting() {
372
372
assert_eq ! ( json. crates[ 3 ] . name, "foo_sort" ) ;
373
373
374
374
// 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
377
376
let mut response = ok_resp ! ( middle. call( req. with_query( "sort=recent-downloads" ) ) ) ;
378
377
let json: CrateList = :: json ( & mut response) ;
379
378
assert_eq ! ( json. meta. total, 4 ) ;
@@ -477,7 +476,7 @@ fn exact_match_on_queries_with_sort() {
477
476
assert_eq ! ( json. crates[ 1 ] . name, "foo_sort" ) ;
478
477
assert_eq ! ( json. crates[ 2 ] . name, "baz_sort" ) ;
479
478
480
- //Sort by recent-updates
479
+ // Sort by recent-updates
481
480
let mut response = ok_resp ! ( middle. call( req. with_query( "q=bar_sort&sort=recent-updates" ) , ) ) ;
482
481
let json: CrateList = :: json ( & mut response) ;
483
482
assert_eq ! ( json. meta. total, 3 ) ;
@@ -486,8 +485,7 @@ fn exact_match_on_queries_with_sort() {
486
485
assert_eq ! ( json. crates[ 2 ] . name, "foo_sort" ) ;
487
486
488
487
// 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
491
489
let mut response = ok_resp ! ( middle. call( req. with_query( "sort=recent-downloads" ) ) ) ;
492
490
let json: CrateList = :: json ( & mut response) ;
493
491
assert_eq ! ( json. meta. total, 4 ) ;
0 commit comments