@@ -516,6 +516,9 @@ mod tests {
516
516
mark
517
517
))
518
518
})
519
+ // HashSet iteration order isn't defined - it's different on
520
+ // x86_64 and i686 at the very least
521
+ .sorted()
519
522
.collect::<String>();
520
523
expect.assert_eq(&actual)
521
524
}
@@ -831,10 +834,10 @@ mod tests {
831
834
Query::new("fmt".to_string()).search_mode(SearchMode::Fuzzy),
832
835
expect![[r#"
833
836
dep::fmt (t)
834
- dep::fmt::Display::format_method (a)
835
837
dep::fmt::Display (t)
836
838
dep::fmt::Display::FMT_CONST (a)
837
839
dep::fmt::Display::format_function (a)
840
+ dep::fmt::Display::format_method (a)
838
841
"#]],
839
842
);
840
843
}
@@ -860,10 +863,10 @@ mod tests {
860
863
"main",
861
864
Query::new("fmt".to_string()).search_mode(SearchMode::Fuzzy).assoc_items_only(),
862
865
expect![[r#"
863
- dep::fmt::Display::format_method (a)
864
- dep::fmt::Display::FMT_CONST (a)
865
- dep::fmt::Display::format_function (a)
866
- "#]],
866
+ dep::fmt::Display::FMT_CONST (a)
867
+ dep::fmt::Display::format_function (a)
868
+ dep::fmt::Display::format_method (a)
869
+ "#]],
867
870
);
868
871
869
872
check_search(
@@ -920,13 +923,13 @@ mod tests {
920
923
"main",
921
924
Query::new("fmt".to_string()).search_mode(SearchMode::Fuzzy),
922
925
expect![[r#"
923
- dep::fmt (t)
924
- dep::format (f)
925
- dep::Fmt (v)
926
926
dep::Fmt (m)
927
927
dep::Fmt (t)
928
- dep::fmt::Display::fmt (a)
928
+ dep::Fmt (v)
929
+ dep::fmt (t)
929
930
dep::fmt::Display (t)
931
+ dep::fmt::Display::fmt (a)
932
+ dep::format (f)
930
933
"#]],
931
934
);
932
935
@@ -935,10 +938,10 @@ mod tests {
935
938
"main",
936
939
Query::new("fmt".to_string()).search_mode(SearchMode::Equals),
937
940
expect![[r#"
938
- dep::fmt (t)
939
- dep::Fmt (v)
940
941
dep::Fmt (m)
941
942
dep::Fmt (t)
943
+ dep::Fmt (v)
944
+ dep::fmt (t)
942
945
dep::fmt::Display::fmt (a)
943
946
"#]],
944
947
);
@@ -948,12 +951,12 @@ mod tests {
948
951
"main",
949
952
Query::new("fmt".to_string()).search_mode(SearchMode::Contains),
950
953
expect![[r#"
951
- dep::fmt (t)
952
- dep::Fmt (v)
953
954
dep::Fmt (m)
954
955
dep::Fmt (t)
955
- dep::fmt::Display::fmt (a)
956
+ dep::Fmt (v)
957
+ dep::fmt (t)
956
958
dep::fmt::Display (t)
959
+ dep::fmt::Display::fmt (a)
957
960
"#]],
958
961
);
959
962
}
@@ -989,12 +992,12 @@ mod tests {
989
992
"main",
990
993
Query::new("fmt".to_string()),
991
994
expect![[r#"
992
- dep::fmt (t)
993
- dep::Fmt (v)
994
995
dep::Fmt (m)
995
996
dep::Fmt (t)
996
- dep::fmt::Display::fmt (a)
997
+ dep::Fmt (v)
998
+ dep::fmt (t)
997
999
dep::fmt::Display (t)
1000
+ dep::fmt::Display::fmt (a)
998
1001
"#]],
999
1002
);
1000
1003
@@ -1003,10 +1006,10 @@ mod tests {
1003
1006
"main",
1004
1007
Query::new("fmt".to_string()).name_only(),
1005
1008
expect![[r#"
1006
- dep::fmt (t)
1007
- dep::Fmt (v)
1008
1009
dep::Fmt (m)
1009
1010
dep::Fmt (t)
1011
+ dep::Fmt (v)
1012
+ dep::fmt (t)
1010
1013
dep::fmt::Display::fmt (a)
1011
1014
"#]],
1012
1015
);
@@ -1027,10 +1030,10 @@ mod tests {
1027
1030
"main",
1028
1031
Query::new("FMT".to_string()),
1029
1032
expect![[r#"
1030
- dep::fmt (t)
1033
+ dep::FMT (t)
1031
1034
dep::FMT (v)
1035
+ dep::fmt (t)
1032
1036
dep::fmt (v)
1033
- dep::FMT (t)
1034
1037
"#]],
1035
1038
);
1036
1039
@@ -1068,10 +1071,10 @@ mod tests {
1068
1071
"main",
1069
1072
Query::new("".to_string()).limit(2),
1070
1073
expect![[r#"
1071
- dep::fmt (t )
1074
+ dep::Fmt (m )
1072
1075
dep::Fmt (t)
1073
1076
dep::Fmt (v)
1074
- dep::Fmt (m )
1077
+ dep::fmt (t )
1075
1078
"#]],
1076
1079
);
1077
1080
}
@@ -1091,10 +1094,10 @@ mod tests {
1091
1094
"main",
1092
1095
Query::new("FMT".to_string()),
1093
1096
expect![[r#"
1094
- dep::fmt (t)
1097
+ dep::FMT (t)
1095
1098
dep::FMT (v)
1099
+ dep::fmt (t)
1096
1100
dep::fmt (v)
1097
- dep::FMT (t)
1098
1101
"#]],
1099
1102
);
1100
1103
0 commit comments