new string operator '/'

This commit is contained in:
2024-12-28 19:16:45 +01:00
parent 252514943e
commit 526982a564
5 changed files with 40 additions and 11 deletions
+6
View File
@@ -16,6 +16,12 @@ func TestStringsParser(t *testing.T) {
/* 4 */ {`"uno" * (2+1)`, `unounouno`, nil},
/* 5 */ {`"abc"[1]`, `b`, nil},
/* 6 */ {`#"abc"`, int64(3), nil},
/* 7 */ {`"192.168.0.240" / "."`, newListA("192", "168", "0", "240"), nil},
/* 8 */ {`("192.168.0.240" / ".")[1]`, "168", nil},
/* 9 */ {`"AF3B0Dz" / 2`, newListA("AF", "3B", "0D", "z"), nil},
/* 10 */ {`"AF3B0Dz" / 0`, nil, "[1:12] division by zero"},
}
// runTestSuiteSpec(t, "String", inputs, 8)
runTestSuite(t, "String", inputs)
}