String.Split gives inconsistent results. For example:
String s1 = String("|aa");
String s2 = String("aa|");
String s3 = String("a||a");
String d = String("|");
REQUIRE(s1.Split(d).GetSize() == 2);
REQUIRE(s2.Split(d).GetSize() == 2);
REQUIRE(s3.Split(d).GetSize() == 3);
Splitting s1 returns Dynarray with size of 2 (empty string and "aa"), whilie splitting s2 gives Dynarray with only 1 String inside ("aa") and the test fails. IMO this should also contain blank String.
s3.Split also returns 3 values ("a", blank, "a") as expected.
String.Split gives inconsistent results. For example:
Splitting s1 returns Dynarray with size of 2 (empty string and "aa"), whilie splitting s2 gives Dynarray with only 1 String inside ("aa") and the test fails. IMO this should also contain blank String.
s3.Split also returns 3 values ("a", blank, "a") as expected.