From 3cf298b854443e7bbb2a96d976e8d79ffc4ddf02 Mon Sep 17 00:00:00 2001 From: Saikari Date: Sat, 17 Jan 2026 02:33:18 +0300 Subject: add string case conversion functions: lower and upper --- tests/modules/string/test.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/modules/string/test.lua') diff --git a/tests/modules/string/test.lua b/tests/modules/string/test.lua index 3f52dc593..6bb3b6f78 100644 --- a/tests/modules/string/test.lua +++ b/tests/modules/string/test.lua @@ -106,3 +106,10 @@ function test_replace(t) t:are_equal(("123$xyz456xyz789xyz"):replace("123$", "000", {plain = true}), "000xyz456xyz789xyz") t:are_equal(("123xyz$456xyz$789xyz$"):replace("xyz$", "000", {plain = true}), "123000456000789000") end + +function test_case(t) + t:are_equal(("Hello"):lower(), "hello") + t:are_equal(("Hello"):upper(), "HELLO") + t:are_equal(("Звезда Хэнсин"):lower(), "звезда хэнсин") + t:are_equal(("Звезда Хэнсин"):upper(), "ЗВЕЗДА ХЭНСИН") +end -- cgit v1.3.1