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

Function TestByte3

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

Source from the content-addressed store, hash-verified

23 NewCompiler().Compiler(script)
24}
25func TestByte3(t *testing.T) {
26 script := `
27string s = "10";
28byte[] a= toByteArray(s);
29printf("a=%v ",a);
30string s1 = toString(a);
31printf("s1=%s",s1);
32assertEqual(s1,s);
33println("");
34`
35 NewCompiler().Compiler(script)
36}
37func TestStringBuilder(t *testing.T) {
38 script := `
39StringBuilder b = StringBuilder();

Callers

nothing calls this directly

Calls 2

NewCompilerFunction · 0.85
CompilerMethod · 0.80

Tested by

no test coverage detected