Fix bug in character set intersection calculation
This commit is contained in:
parent
9cb92a0a96
commit
2a5dd3434f
2 changed files with 8 additions and 0 deletions
|
|
@ -108,6 +108,12 @@ describe("character sets", []() {
|
|||
CharacterSet set2({ {'c', 'y'} });
|
||||
AssertThat(set1.intersect(set2), Equals(CharacterSet({ {'c', 'e'}, {'w', 'y'} })));
|
||||
});
|
||||
|
||||
it("works for some sets", []() {
|
||||
CharacterSet set1({ {'i', 'i'} });
|
||||
CharacterSet set2({ {'a', 'z'} });
|
||||
AssertThat(set1.intersect(set2), Equals(CharacterSet({ {'i', 'i'} })));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue