Skip to content

Commit 23a84ed

Browse files
committed
Compact tests, combining char const*, string and string_view variations
1 parent b492fb3 commit 23a84ed

File tree

2 files changed

+113
-533
lines changed

2 files changed

+113
-533
lines changed

README.md

Lines changed: 30 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -211,123 +211,36 @@ In the test runner, the version of *string-bare* is available via tag `[.version
211211
<p>
212212

213213
```
214-
length: length of given string - char *
215-
length: length of given string - std::string
216-
size: length of given string - char *
217-
size: length of given string - std::string
218-
is_empty: true if string is empty - char *
219-
is_empty: true if string is empty - string
220-
contains: true if string contains sub string - char*-char
221-
contains: true if string contains sub string - string-char
222-
contains: true if string contains sub string - string_view-char
223-
contains: true if string contains sub string - char*-char*
224-
contains: true if string contains sub string - string-char*
225-
contains: true if string contains sub string - string-string
226-
contains: true if string contains sub string - string-string_view
227-
contains: true if string contains sub string - string_view-string_view
228-
starts_with: true if string starts with sub string - char*-char
229-
starts_with: true if string starts with sub string - string-char
230-
starts_with: true if string starts with sub string - string_view-char
231-
starts_with: true if string starts with sub string - char*-char*
232-
starts_with: true if string starts with sub string - string-char*
233-
starts_with: true if string starts with sub string - string-string
234-
starts_with: true if string starts with sub string - string-string_view
235-
starts_with: true if string starts with sub string - string_view-string_view
236-
ends_with: true if string ends with sub string - char*-char
237-
ends_with: true if string ends with sub string - string-char
238-
ends_with: true if string ends with sub string - string_view-char
239-
ends_with: true if string ends with sub string - string-char*
240-
ends_with: true if string ends with sub string - char*-char*
241-
ends_with: true if string ends with sub string - string-string
242-
ends_with: true if string ends with sub string - string-string_view
243-
ends_with: true if string ends with sub string - string_view-string_view
244-
find_first: position of sub string in string - char*-char
245-
find_first: position of sub string in string - string-char
246-
find_first: position of sub string in string - string_view-char
247-
find_first: position of sub string in string - char*-char*
248-
find_first: position of sub string in string - string-char*
249-
find_first: position of sub string in string - string-string
250-
find_first: position of sub string in string - string-string_view
251-
find_first: position of sub string in string - string_view-string_view
252-
find_last: position of sub string in string - char*-char
253-
find_last: position of sub string in string - string-char
254-
find_last: position of sub string in string - string_view-char
255-
find_last: position of sub string in string - char*-char*
256-
find_last: position of sub string in string - string-char*
257-
find_last: position of sub string in string - string-string
258-
find_last: position of sub string in string - string-string_view
259-
find_last: position of sub string in string - string_view-string_view
260-
find_first_of: position of character in set in string - char*-char*
261-
find_first_of: position of character in set in string - string-char*
262-
find_first_of: position of character in set in string - string-string
263-
find_first_of: position of character in set in string - string-string_view
264-
find_first_of: position of character in set in string - string_view-string_view
265-
find_last_of: position of character in set in string - char*-char*
266-
find_last_of: position of character in set in string - string-char*
267-
find_last_of: position of character in set in string - string-string
268-
find_last_of: position of character in set in string - string-string_view
269-
find_last_of: position of character in set in string - string_view-string_view
270-
find_first_not_of: position of character in set in string - char*-char*
271-
find_first_not_of: position of character in set in string - string-char*
272-
find_first_not_of: position of character in set in string - string-string
273-
find_first_not_of: position of character in set in string - string-string_view
274-
find_first_not_of: position of character in set in string - string_view-string_view
275-
find_last_not_of: position of character in set in string - char*-char*
276-
find_last_not_of: position of character in set in string - string-char*
277-
find_last_not_of: position of character in set in string - string-string
278-
find_last_not_of: position of character in set in string - string-string_view
279-
find_last_not_of: position of character in set in string - string_view-string_view
280-
to_lowercase: Return char in lowercase - char
281-
to_lowercase: Return string in lowercase - char*
282-
to_lowercase: Return string in lowercase - string
283-
to_lowercase: Return string in lowercase - string_view
284-
to_uppercase: Return char in uppercase - char
285-
to_uppercase: Return string in uppercase - char*
286-
to_uppercase: Return string in uppercase - string
287-
to_uppercase: Return string in uppercase - string_view
288-
append: Return string with second string append to first string - char*-char*
289-
append: Return string with second string append to first string - string-char*
290-
append: Return string with second string append to first string - string-string
291-
append: Return string with second string append to first string - string-string_view
292-
append: Return string with second string append to first string - string_view-string_view
293-
substring: Return substring given position and length - char*-pos
294-
substring: Return substring given position and length - string-pos
295-
substring: Return substring given position and length - string_view-pos
296-
strip_left: Remove characters in set from left of string [" \t\n"] - char*-char*
297-
strip_left: Remove characters in set from left of string [" \t\n"] - string-char*
298-
strip_left: Remove characters in set from left of string [" \t\n"] - string-string
299-
strip_left: Remove characters in set from left of string [" \t\n"] - string-string_view
300-
strip_left: Remove characters in set from left of string [" \t\n"] - string_view-string_view
301-
strip_left: Remove characters in set from left of string [" \t\n"] - other-char*
302-
strip_right: Remove characters in set from right of string [" \t\n"] - char*-char*
303-
strip_right: Remove characters in set from right of string [" \t\n"] - string-char*
304-
strip_right: Remove characters in set from right of string [" \t\n"] - string-string
305-
strip_right: Remove characters in set from right of string [" \t\n"] - string-string_view
306-
strip_right: Remove characters in set from right of string [" \t\n"] - string_view-string_view
307-
strip_right: Remove characters in set from right of string [" \t\n"] - other-char*
308-
strip: Remove characters in set from left and right of string [" \t\n"] - char*-char*
309-
strip: Remove characters in set from left and right of string [" \t\n"] - string-char*
310-
strip: Remove characters in set from left and right of string [" \t\n"] - string-string
311-
strip: Remove characters in set from left and right of string [" \t\n"] - string-string_view
312-
strip: Remove characters in set from left and right of string [" \t\n"] - string_view-string_view
313-
strip: Remove characters in set from left and right of string [" \t\n"] - other-char*
314-
replace_all: Return string with all occurrences of sub string changed - char*-char*
315-
replace_all: Return string with all occurrences of sub string changed - string-string
316-
replace_all: Return string with all occurrences of sub string changed - string-string_view
317-
replace_all: Return string with all occurrences of sub string changed - string_view-string_view
318-
replace_first: Return string with first occurrence of sub string changed - char*-char*
319-
replace_first: Return string with first occurrence of sub string changed - string-char*
320-
replace_first: Return string with first occurrence of sub string changed - string-string
321-
replace_first: Return string with first occurrence of sub string changed - string-string_view
322-
replace_first: Return string with first occurrence of sub string changed - string_view-string_view
323-
replace_last: Return string with last occurrence of sub string changed - char*-char*
324-
replace_last: Return string with last occurrence of sub string changed - string-string
325-
replace_last: Return string with last occurrence of sub string changed - string-string_view
326-
replace_last: Return string with last occurrence of sub string changed - string_view-string_view
327-
join: Join strings from collection into a string separated by given separator
328-
split: Split string into vector of string_view given delimiter - literal_delimiter
329-
split_left: Split string into two-element tuple given delimiter - forward - xxx_delimiter
330-
split_right: Split string into two-element tuple given delimiter - reverse - xxx_delimiter
214+
length: length of given string
215+
size: length of given string
216+
is_empty: true if string is empty
217+
contains: true if string contains substring
218+
starts_with: true if string starts with substring
219+
ends_with: true if string ends with substring
220+
find_first: position of first substring in string
221+
find_last: position of last substring in string
222+
find_first_of: position of first character in string in set
223+
find_last_of: position of last character in string in set
224+
find_first_not_of: position of first character in string not in set
225+
find_last_not_of: position of last character in string not in set
226+
capitalize: string transformed to start with capital
227+
to_lowercase: char transformed to lowercase
228+
to_lowercase: string transformed to lowercase
229+
to_uppercase: char transformed to uppercase
230+
to_uppercase: string transformed to uppercase
231+
append: string with second string concatenated to first string
232+
substring: substring given position and length
233+
strip_left: string with characters in set removed from left of string [" \t\n"]
234+
strip_right: string with characters in set removed from right of string [" \t\n"]
235+
strip: string with characters in set removed from left and right of string [" \t\n"]
236+
replace: string with substring given by position and length replaced
237+
replace_all: string with all occurrences of substring replaced
238+
replace_first: string with first occurrence of substring replaced
239+
replace_last: string with last occurrence of substring replaced
240+
join: string with strings from collection joined separated by given separator
241+
split: split string into vector of string_view given delimiter - literal_delimiter
242+
split_left: split string into two-element tuple given delimiter - forward - literal_delimiter
243+
split_right: split string into two-element tuple given delimiter - reverse - literal_delimiter
331244
tweak header: Reads tweak header if supported [tweak]
332245
```
333246

0 commit comments

Comments
 (0)