github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/r/demo/markdown_test/markdown_test.gno (about)

     1  package markdown
     2  
     3  import (
     4  	"strings"
     5  	"testing"
     6  )
     7  
     8  func TestRender(t *testing.T) {
     9  	output := Render("")
    10  	if !strings.Contains(output, "\nMarkdown Quick Reference\n") {
    11  		t.Errorf("invalid output")
    12  	}
    13  }