File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -794,15 +794,24 @@ mod tests {
794
794
795
795
assert_eq ! ( row. get:: <_, bool >( "rustdoc_status" ) , true ) ;
796
796
assert_eq ! ( row. get:: <_, String >( "default_target" ) , default_target) ;
797
+
798
+ let mut targets: Vec < String > = row
799
+ . get :: < _ , Value > ( "doc_targets" )
800
+ . as_array ( )
801
+ . unwrap ( )
802
+ . into_iter ( )
803
+ . map ( |v| v. as_str ( ) . unwrap ( ) . clone ( ) . to_owned ( ) )
804
+ . collect ( ) ;
805
+ targets. sort ( ) ;
797
806
assert_eq ! (
798
- row. get:: <_, Value >( "doc_targets" ) ,
799
- json!( [
800
- "x86_64-unknown-linux-gnu" , // default target is first
801
- "i686-pc-windows-msvc" , // rest is alphabetically
807
+ targets,
808
+ vec![
809
+ "i686-pc-windows-msvc" ,
802
810
"i686-unknown-linux-gnu" ,
803
811
"x86_64-apple-darwin" ,
804
812
"x86_64-pc-windows-msvc" ,
805
- ] )
813
+ "x86_64-unknown-linux-gnu" ,
814
+ ]
806
815
) ;
807
816
808
817
let storage = env. storage ( ) ;
You can’t perform that action at this time.
0 commit comments