Added _toString()

This commit is contained in:
2023-02-05 13:29:44 +00:00
parent 60225b733b
commit 0e932f24cc
2 changed files with 58 additions and 1 deletions

View File

@@ -32,6 +32,16 @@ import compound;
}
//test toString
{
var a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
var s = a.toString();
assert s == "[[1,2,3],[4,5,6],[7,8,9]]", "array._toString() failed";
}
//test toUpper
{
assert "Hello World".toUpper() == "HELLO WORLD", "_toUpper() failed";