CharRanges m = CharRanges.withMembers(0, 1, 2, 3, 6, 9, 0xa, 0xe, 0xf);
CharRanges s = CharRanges.withMembers(2, 5, 6, 7, 0xa, 0xb, 0xd, 0xe);
CharRanges d = m.difference(s);
assertEquals("[0x0-0x1 0x3 0x9 0xf]", d.toString());
assertTrue(m.containsAll(d));
assertFalse(d.containsAll(m));
assertFalse(d.containsAll(s));
assertFalse(s.containsAll(d));
assertTrue(d.containsAll(d));
}