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

Function TestStringBuilder6

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

Source from the content-addressed store, hash-verified

81 NewCompiler().Compiler(script)
82}
83func TestStringBuilder6(t *testing.T) {
84 script := `
85Strings s = Strings();
86bool b = s.hasPrefix("http://www.xx.com", "http");
87println(b);
88assertEqual(b,true);
89b = s.hasPrefix("http://www.xx.com", "https");
90println(b);
91assertEqual(b,false);
92`
93 NewCompiler().Compiler(script)
94}
95func TestArraySlice(t *testing.T) {
96 script := `
97int[] a = {1,2,3};

Callers

nothing calls this directly

Calls 2

NewCompilerFunction · 0.85
CompilerMethod · 0.80

Tested by

no test coverage detected