From b94fa3ed35e049299d857bf94b1060dbd2b5f359 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 6 Feb 2014 12:58:00 -0800 Subject: [PATCH] Clarify character set specs --- character_set_spec.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/character_set_spec.cpp b/character_set_spec.cpp index 471aa0c1..7050e136 100644 --- a/character_set_spec.cpp +++ b/character_set_spec.cpp @@ -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))); }); });