blob: 9de4abf0bf0f4dbb7cab6cb4d27225ff47f5f001 [file] [log] [blame]
package pwd
import (
"os"
"path/filepath"
"strings"
"testing"
)
func TestPwd(t *testing.T) {
pwd := os.Getenv("PWD")
suffix := filepath.FromSlash("tests/core/go_test")
if !strings.HasSuffix(pwd, filepath.FromSlash(suffix)) {
t.Errorf("PWD not set. got %q; want something ending with %q", pwd, suffix)
}
}