(t *testing.T)
| 52 | NewCompiler().Compiler(script) |
| 53 | } |
| 54 | func TestStringBuilder3(t *testing.T) { |
| 55 | script := ` |
| 56 | Strings s = Strings(); |
| 57 | string[] elems = {"name=xxx","age=xx"}; |
| 58 | string ret = s.join(elems, "&"); |
| 59 | println(ret); |
| 60 | assertEqual(ret, "name=xxx&age=xx"); |
| 61 | ` |
| 62 | //os.Setenv(RuntimeError, "true") |
| 63 | NewCompiler().Compiler(script) |
| 64 | } |
| 65 | func TestStringBuilder4(t *testing.T) { |
| 66 | script := ` |
| 67 | int[] a = [0]{1,2}; |
nothing calls this directly
no test coverage detected