mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
test/expr: add more index testing of unicode strings
This commit is contained in:
@@ -108,6 +108,14 @@ fn test_index() {
|
|||||||
.args(&["index", "αbcdef", "α"])
|
.args(&["index", "αbcdef", "α"])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_only("1\n");
|
.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!()
|
new_ucmd!()
|
||||||
.args(&["index", "αbcdef", "fb"])
|
.args(&["index", "αbcdef", "fb"])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
|
|||||||
Reference in New Issue
Block a user