Skip to content

Commit 96df159

Browse files
committed
doc: list "does not..." assertions fro string in README
1 parent e2fc846 commit 96df159

1 file changed

Lines changed: 26 additions & 21 deletions

File tree

README.md

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -260,27 +260,32 @@ for `bool`.
260260

261261
for strings of type `String` and `str`:
262262

263-
| assertion | description |
264-
|-----------------------------|--------------------------------------------------------------------------------|
265-
| is_empty | verify that a string is empty |
266-
| is_not_empty | verify that a string is not empty |
267-
| has_length | verify that a string has exactly the expected length |
268-
| has_length_in_range | verify that a string has a length that is in the expected range |
269-
| has_length_less_than | verify that a string has a length less than the expected length |
270-
| has_length_greater_than | verify that a string has a length greater than the expected length |
271-
| has_at_most_length | verify that a string has a length less than or equal to the expected length |
272-
| has_at_least_length | verify that a string has a length greater than or equal to the expected length |
273-
| has_char_count | verify that a string contains exactly the expected number of characters |
274-
| has_char_count_in_range | verify that a string contains a number of characters in the expected range |
275-
| has_char_count_less_than | verify that a string contains less than the expected number of characters |
276-
| has_char_count_greater_than | verify that a string contains more than the expected number of characters |
277-
| has_at_most_char_count | verify that a string contains at most the expected number of characters |
278-
| has_at_least_char_count | verify that a string contains at least the expected number of characters |
279-
| contains | verify that a string contains the expected substring or character |
280-
| starts_with | verify that a string starts with the expected substring or character |
281-
| ends_with | verify that a string ends with the expected substring or character |
282-
| contains_any_of | verify that a string contains any character from a collection of `char`s |
283-
| matches | verify that a string matches the given regex (requires `regex` feature) |
263+
| assertion | description |
264+
|-----------------------------|----------------------------------------------------------------------------------|
265+
| is_empty | verify that a string is empty |
266+
| is_not_empty | verify that a string is not empty |
267+
| has_length | verify that a string has exactly the expected length |
268+
| has_length_in_range | verify that a string has a length that is in the expected range |
269+
| has_length_less_than | verify that a string has a length less than the expected length |
270+
| has_length_greater_than | verify that a string has a length greater than the expected length |
271+
| has_at_most_length | verify that a string has a length less than or equal to the expected length |
272+
| has_at_least_length | verify that a string has a length greater than or equal to the expected length |
273+
| has_char_count | verify that a string contains exactly the expected number of characters |
274+
| has_char_count_in_range | verify that a string contains a number of characters in the expected range |
275+
| has_char_count_less_than | verify that a string contains less than the expected number of characters |
276+
| has_char_count_greater_than | verify that a string contains more than the expected number of characters |
277+
| has_at_most_char_count | verify that a string contains at most the expected number of characters |
278+
| has_at_least_char_count | verify that a string contains at least the expected number of characters |
279+
| contains | verify that a string contains the expected substring or character |
280+
| does_not_contain | verify that a string does not contain the expected substring or character |
281+
| starts_with | verify that a string starts with the expected substring or character |
282+
| does_not_start_with | verify that a string does not start with the expected substring or character |
283+
| ends_with | verify that a string ends with the expected substring or character |
284+
| does_not_end_with | verify that a string does not end with the expected substring or character |
285+
| contains_any_of | verify that a string contains any character from a collection of `char`s |
286+
| does_not_contain_any_of | verify that a string does not contain any character from a collection of `char`s |
287+
| matches | verify that a string matches the given regex (requires `regex` feature) |
288+
| does_not_match | verify that a string does not match the given regex (requires `regex` feature) |
284289

285290
for strings of type `CString` and `CStr`:
286291

0 commit comments

Comments
 (0)