Skip to content

Commit 79e39cb

Browse files
committed
Add tests for macros hygiene
1 parent 807a1ce commit 79e39cb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/macros_hygiene.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#[test]
2+
fn iproduct_hygiene() {
3+
let _ = itertools::iproduct!(0..6);
4+
let _ = itertools::iproduct!(0..6, 0..9);
5+
let _ = itertools::iproduct!(0..6, 0..9, 0..12);
6+
}
7+
8+
#[test]
9+
fn izip_hygiene() {
10+
let _ = itertools::izip!(0..6);
11+
let _ = itertools::izip!(0..6, 0..9);
12+
let _ = itertools::izip!(0..6, 0..9, 0..12);
13+
}

0 commit comments

Comments
 (0)