From 330e34ef993d43da6daad4a279c8b23cf768b671 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Wed, 22 May 2024 07:49:36 -0700 Subject: [PATCH] Update validity.rs --- src/tests/validity.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/validity.rs b/src/tests/validity.rs index ce1e139b..8d9f8531 100644 --- a/src/tests/validity.rs +++ b/src/tests/validity.rs @@ -756,6 +756,10 @@ fn test_std_library() { loop line in lines(\"hello\nworld\") { echo line } + // Split a multiline string into a list of string by one or more spaces + loop word in words(\"hello world ciao mondo\") { + echo word + } // Join a list of strings into a string echo join(split(\"hello world\", \"l\"), \"l\") // Transform string into a lowercase string @@ -790,6 +794,10 @@ fn test_std_library() { "he o wor d", "hello", "world", + "hello", + "world", + "ciao", + "mondo", "hello world", "hello world", "HELLO WORLD",