Skip to content

Commit dc5e0fe

Browse files
Add smoke test for Relation::from_antijoin
This fails on the prior commit.
1 parent 164cc6c commit dc5e0fe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,12 @@ fn leapjoin_from_extend() {
193193

194194
assert_eq!(variable.elements, vec![(2, 2), (2, 4)]);
195195
}
196+
197+
#[test]
198+
fn relation_antijoin_smoke() {
199+
let include = Relation::from(vec![("a", "b")]);
200+
let exclude = Relation::from(vec![]);
201+
202+
let output = Relation::from_antijoin(&include, &exclude, |&a, &b| (a, b));
203+
assert_eq!(&output[..], &[("a", "b")]);
204+
}

0 commit comments

Comments
 (0)