Scott Steele b96e5cb899 Verify character class still non-empty after converting to byte class
For `[^\x00-\xff]`, while it is still treated as a full Unicode
character class, it is not empty. For instance `≥` would still be
matched.

However, when `CharClass::to_byte_class` is called on it (as is done
when using `regex::bytes::Regex::new` rather than `regex::Regex::new`),
it _is_ now empty, since it excludes all possible bytes.

This commit adds a test asserting that `regex::bytes::Regex::new`
returns `Err` for this case (in accordance with
https://github.com/rust-lang-nursery/regex/issues/106) and adds an
`is_empty` check to the result of calling `CharClass::to_byte_class`,
which allows the test to pass.
2016-12-07 21:20:08 -05:00
..
2016-03-09 21:23:29 -05:00
2016-07-09 17:04:58 -04:00
2016-03-09 21:23:29 -05:00
2016-03-09 21:23:29 -05:00
2016-03-09 21:23:29 -05:00
2016-03-09 21:23:29 -05:00
2016-03-09 21:23:29 -05:00
2016-03-09 21:23:29 -05:00
2016-03-09 21:23:29 -05:00
2016-03-09 21:23:29 -05:00
2016-03-09 21:23:29 -05:00
2016-03-27 20:07:46 -04:00
2016-05-06 20:20:05 -04:00
2016-04-29 10:42:11 -04:00
2016-04-29 10:42:11 -04:00
2016-05-19 17:47:44 -04:00
2016-04-22 21:17:02 -04:00