github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/p/demo/tests/tests_test.gno (about)

     1  package tests_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"gno.land/p/demo/tests"
     7  )
     8  
     9  var World = "WORLD"
    10  
    11  func TestGetHelloWorld(t *testing.T) {
    12  	// tests.World is 'world'
    13  	s := "hello " + tests.World + World
    14  	const want = "hello worldWORLD"
    15  	if s != want {
    16  		t.Errorf("got %q want %q", s, want)
    17  	}
    18  }