elvish/pkg/eval/builtin_ns_test.go
Qi Xiao a1b30deb86 pkg/eval/evaltest: Rename TestWithFullSetup -> TestWithSetup.
The old TestWithSetup is now more accurately called TestWithEvalerSetup.
2023-07-22 23:04:18 +01:00

18 lines
386 B
Go

package eval_test
import (
"testing"
. "src.elv.sh/pkg/eval"
. "src.elv.sh/pkg/eval/evaltest"
"src.elv.sh/pkg/eval/vals"
)
func TestExplicitBuiltinModule(t *testing.T) {
TestWithEvalerSetup(t, func(ev *Evaler) { ev.Args = vals.MakeList("a", "b") },
That("all $args").Puts("a", "b"),
// Regression test for #1414
That("use builtin; all $builtin:args").Puts("a", "b"),
)
}