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

Function TestStringBuilder4

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

Source from the content-addressed store, hash-verified

63 NewCompiler().Compiler(script)
64}
65func TestStringBuilder4(t *testing.T) {
66 script := `
67int[] a = [0]{1,2};
68println(len(a));
69println(cap(a));
70append(a,3);
71println(cap(a));
72assertEqual(cap(a),4);
73`
74 NewCompiler().Compiler(script)
75}
76func TestStringBuilder5(t *testing.T) {
77 script := `
78StringBuilder sb = StringBuilder();

Callers

nothing calls this directly

Calls 2

NewCompilerFunction · 0.85
CompilerMethod · 0.80

Tested by

no test coverage detected