MCPcopy Create free account
hub / github.com/crossoverJie/gscript / TestStringBuilder3

Function TestStringBuilder3

byte_test.go:54–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

NewCompilerFunction · 0.85
CompilerMethod · 0.80

Tested by

no test coverage detected