mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: byte => u8
This commit is contained in:
parent
b49d873217
commit
d4a0d6f73c
221 changed files with 1365 additions and 1365 deletions
|
@ -71,9 +71,9 @@ const expected_string_outputs = [
|
|||
|
||||
fn test_find_between_pair_family() {
|
||||
assert strings.find_between_pair_rune('xx♡ok❦yy', `♡`, `❦`) == 'ok'
|
||||
assert strings.find_between_pair_byte('xx{ok}yy', `{`, `}`) == 'ok'
|
||||
assert strings.find_between_pair_u8('xx{ok}yy', `{`, `}`) == 'ok'
|
||||
assert strings.find_between_pair_string('xx/*ok*/yy', '/*', '*/') == 'ok'
|
||||
assert strings.find_between_pair_byte('xx{ok}yy', `{`, `}`) == 'ok'
|
||||
assert strings.find_between_pair_u8('xx{ok}yy', `{`, `}`) == 'ok'
|
||||
assert strings.find_between_pair_string('xxxxokyyyy', 'xxx', 'yyy') == 'xok'
|
||||
|
||||
for i, tstr in test_rune_and_byte {
|
||||
|
@ -83,7 +83,7 @@ fn test_find_between_pair_family() {
|
|||
}
|
||||
|
||||
for i, tstr in test_rune_and_byte {
|
||||
e1 := strings.find_between_pair_byte(tstr, `[`, `]`)
|
||||
e1 := strings.find_between_pair_u8(tstr, `[`, `]`)
|
||||
e2 := expected_rune_and_byte_outputs[i]
|
||||
assert '$e1' == '$e2'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue