Skip to content

Commit dda1a18

Browse files
committed
---
yaml --- r: 51299 b: refs/heads/incoming c: 2889a8a h: refs/heads/master i: 51297: 03014dc 51295: 67f8bde v: v3
1 parent 3aa5128 commit dda1a18

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 66afa5d17a0d157de38e749851ed75b48f8fc3c4
9+
refs/heads/incoming: 2889a8a4e5a490cf650d3730bc05a1694a1d3310
1010
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libstd/treemap.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,11 @@ mod test_set {
11311131
check(a, b, expected, |x, y, z| x.intersection(y, z))
11321132
}
11331133

1134+
check_intersection([], [], []);
1135+
check_intersection([1, 2, 3], [], []);
1136+
check_intersection([], [1, 2, 3], []);
1137+
check_intersection([2], [1, 2, 3], [2]);
1138+
check_intersection([1, 2, 3], [2], [2]);
11341139
check_intersection([11, 1, 3, 77, 103, 5, -5],
11351140
[2, 11, 77, -9, -42, 5, 3],
11361141
[3, 5, 11, 77]);
@@ -1160,6 +1165,9 @@ mod test_set {
11601165
check(a, b, expected, |x, y, z| x.symmetric_difference(y, z))
11611166
}
11621167

1168+
check_symmetric_difference([], [], []);
1169+
check_symmetric_difference([1, 2, 3], [2], [1, 3]);
1170+
check_symmetric_difference([2], [1, 2, 3], [1, 3]);
11631171
check_symmetric_difference([1, 3, 5, 9, 11],
11641172
[-2, 3, 9, 14, 22],
11651173
[-2, 1, 5, 11, 14, 22]);
@@ -1172,6 +1180,8 @@ mod test_set {
11721180
check(a, b, expected, |x, y, z| x.union(y, z))
11731181
}
11741182

1183+
check_union([], [], []);
1184+
check_union([1, 2, 3], [2], [1, 2, 3]);
11751185
check_union([1, 3, 5, 9, 11, 16, 19, 24],
11761186
[-2, 1, 5, 9, 13, 19],
11771187
[-2, 1, 3, 5, 9, 11, 13, 16, 19, 24]);

0 commit comments

Comments
 (0)