MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / TestPrintString

Function TestPrintString

syntax/printer_test.go:118–129  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func TestPrintString(t *testing.T) {
119 for _, test := range stringTests {
120 ast, err := Parse(nil, strings.NewReader(test[0]), nil, nil, AllowGenerics)
121 if err != nil {
122 t.Error(err)
123 continue
124 }
125 if got := NodeString(ast); got != test[1] {
126 t.Errorf("%q: got %q", test[1], got)
127 }
128 }
129}
130
131func testOut() io.Writer {
132 if testing.Verbose() {

Callers

nothing calls this directly

Calls 3

ParseFunction · 0.85
NodeStringFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected