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

Function TestArraySlice2

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

Source from the content-addressed store, hash-verified

102 NewCompiler().Compiler(script)
103}
104func TestArraySlice2(t *testing.T) {
105 script := `
106string[] a = {"1","2","3"};
107string s="";
108string[] b = a[1:len(a)];
109println(b);
110`
111 NewCompiler().Compiler(script)
112}
113func TestArraySlice3(t *testing.T) {
114 script := `
115string S = "abcdefx";

Callers

nothing calls this directly

Calls 2

NewCompilerFunction · 0.85
CompilerMethod · 0.80

Tested by

no test coverage detected