File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
atcoder-problems-backend/tests Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -385,9 +385,9 @@ async fn test_list_delete() {
385
385
. uri ( "/internal-api/list/my" )
386
386
. insert_header ( ( "Cookie" , cookie_header. as_str ( ) ) )
387
387
. to_request ( ) ;
388
- let list: Value = test:: call_and_read_body_json ( & app, request) . await ;
388
+ let list: Vec < Value > = test:: call_and_read_body_json ( & app, request) . await ;
389
389
390
- assert ! ( list. as_array ( ) . unwrap ( ) . is_empty( ) ) ;
390
+ assert ! ( list. is_empty( ) ) ;
391
391
}
392
392
393
393
#[ actix_web:: test]
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ async fn test_rated_point_sum_ranking() {
68
68
let request = test:: TestRequest :: get ( )
69
69
. uri ( "/atcoder-api/v3/rated_point_sum_ranking?from=10&to=20" )
70
70
. to_request ( ) ;
71
- let response: Value = test:: call_and_read_body_json ( & app, request) . await ;
71
+ let response: Vec < Value > = test:: call_and_read_body_json ( & app, request) . await ;
72
72
73
- assert ! ( response. as_array ( ) . unwrap ( ) . is_empty( ) ) ;
73
+ assert ! ( response. is_empty( ) ) ;
74
74
75
75
let response = test:: TestRequest :: get ( )
76
76
. uri ( "/atcoder-api/v3/rated_point_sum_ranking?from=0&to=2000" )
@@ -82,9 +82,9 @@ async fn test_rated_point_sum_ranking() {
82
82
let request = test:: TestRequest :: get ( )
83
83
. uri ( "/atcoder-api/v3/rated_point_sum_ranking?from=1&to=0" )
84
84
. to_request ( ) ;
85
- let response: Value = test:: call_and_read_body_json ( & app, request) . await ;
85
+ let response: Vec < Value > = test:: call_and_read_body_json ( & app, request) . await ;
86
86
87
- assert ! ( response. as_array ( ) . unwrap ( ) . is_empty( ) ) ;
87
+ assert ! ( response. is_empty( ) ) ;
88
88
89
89
let response = test:: TestRequest :: get ( )
90
90
. uri ( "/atcoder-api/v3/rated_point_sum_ranking?from=-1&to=0" )
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ async fn test_streak_ranking() {
56
56
let request = test:: TestRequest :: get ( )
57
57
. uri ( "/atcoder-api/v3/streak_ranking?from=10&to=0" )
58
58
. to_request ( ) ;
59
- let response: Value = test:: call_and_read_body_json ( & app, request) . await ;
59
+ let response: Vec < Value > = test:: call_and_read_body_json ( & app, request) . await ;
60
60
61
- assert ! ( response. as_array ( ) . unwrap ( ) . is_empty( ) ) ;
61
+ assert ! ( response. is_empty( ) ) ;
62
62
63
63
let response = test:: TestRequest :: get ( )
64
64
. uri ( "/atcoder-api/v3/streak_ranking?from=0&to=2000" )
You can’t perform that action at this time.
0 commit comments