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

Function TestArraySlice

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

Source from the content-addressed store, hash-verified

93 NewCompiler().Compiler(script)
94}
95func TestArraySlice(t *testing.T) {
96 script := `
97int[] a = {1,2,3};
98int s=1;
99int[] b = a[s:len(a)];
100println(b);
101`
102 NewCompiler().Compiler(script)
103}
104func TestArraySlice2(t *testing.T) {
105 script := `
106string[] a = {"1","2","3"};

Callers

nothing calls this directly

Calls 2

NewCompilerFunction · 0.85
CompilerMethod · 0.80

Tested by

no test coverage detected