mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
18 lines
380 B
Go
18 lines
380 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) {
|
||
|
TestWithSetup(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"),
|
||
|
)
|
||
|
}
|