From be37e033be1998edc8d8b05839c9fda635b3ed2f Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Wed, 28 Dec 2022 02:19:39 -0600 Subject: [PATCH] test/expr: add more index testing of unicode strings --- tests/by-util/test_expr.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/by-util/test_expr.rs b/tests/by-util/test_expr.rs index a286f2cf4..6ff37075e 100644 --- a/tests/by-util/test_expr.rs +++ b/tests/by-util/test_expr.rs @@ -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()