File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e2c73ccaf22ec3908cf77e604233c5833ac5ae7d
2
+ refs/heads/master: 9ed9e8c8d0ff0502697e715c2cd0cedd3323d423
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
5
5
refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589
Original file line number Diff line number Diff line change @@ -209,4 +209,18 @@ mod tests {
209
209
assert!(table_str == ~" { 1 : 2 , 3 : 4 } " || table_str == ~" { 3 : 4 , 1 : 2 } ");
210
210
assert!(empty.to_str() == ~" { } ");
211
211
}
212
+
213
+ #[test]
214
+ fn test_hashset() {
215
+ let mut set: HashSet<int, int> = HashSet::new();
216
+ let empty_set: HashSet<int, int> = HashSet::new();
217
+
218
+ set.insert(1);
219
+ set.insert(2);
220
+
221
+ let set_str = set.to_str();
222
+
223
+ assert!(set_str == ~" { 1 , 2 } " || set_str == ~" { 2 , 1 } ");
224
+ assert!(empty.to_str() == ~" { } " ) ;
225
+ }
212
226
}
You can’t perform that action at this time.
0 commit comments