github.com/lmittmann/w3@v0.20.0/internal/mod/root_test.go (about)

     1  package mod_test
     2  
     3  import (
     4  	"strings"
     5  	"testing"
     6  
     7  	"github.com/lmittmann/w3/internal/mod"
     8  )
     9  
    10  func TestModRoot(t *testing.T) {
    11  	if !strings.HasSuffix(mod.Root, "w3") {
    12  		t.Fatalf("Unexpected module root: %q", mod.Root)
    13  	}
    14  }