Clarify character set specs
This commit is contained in:
parent
e8337a3c70
commit
b94fa3ed35
1 changed files with 3 additions and 3 deletions
|
|
@ -47,13 +47,13 @@ describe("character sets", []() {
|
|||
|
||||
it("works when the result becomes a continuous range", []() {
|
||||
CharacterSet set({ {'a', 'd'}, {'f', 'z'} }, true);
|
||||
set.union_with(CharacterSet({ {'d', 'f'} }, true));
|
||||
set.union_with(CharacterSet({ {'c', 'g'} }, true));
|
||||
AssertThat(set, Equals(CharacterSet({ {'a', 'z'} }, true)));
|
||||
});
|
||||
|
||||
it("does nothing for the set of all characters", []() {
|
||||
CharacterSet set({ {'\0', '\xff'} }, true);
|
||||
set.union_with(CharacterSet({ 'a' }));
|
||||
CharacterSet set({ 'a' });
|
||||
set.union_with(set.complement());
|
||||
AssertThat(set, Equals(CharacterSet({ {'\0', '\xff'} }, true)));
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue