mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
test/expr: add more index testing of unicode strings
This commit is contained in:
parent
8e7dbb0bf6
commit
be37e033be
1 changed files with 8 additions and 0 deletions
|
@ -108,6 +108,14 @@ fn test_index() {
|
|||
.args(&["index", "αbcdef", "α"])
|
||||
.succeeds()
|
||||
.stdout_only("1\n");
|
||||
new_ucmd!()
|
||||
.args(&["index", "αbc_δef", "δ"])
|
||||
.succeeds()
|
||||
.stdout_only("5\n");
|
||||
new_ucmd!()
|
||||
.args(&["index", "αbc_δef", "δf"])
|
||||
.succeeds()
|
||||
.stdout_only("5\n");
|
||||
new_ucmd!()
|
||||
.args(&["index", "αbcdef", "fb"])
|
||||
.succeeds()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue