elvish/eval/ns_test.go
Qi Xiao 86534000d8 Merge module imports into the main namespace.
A module called x is now the same as a variable called $x:, much like
how a function called f is the same as a variable called $f~.

Such module variables are not accessible yet though, due to limitations
of the current variable name resolution rules. However, those will be
fixed later.
2017-12-23 23:51:32 +00:00

14 lines
317 B
Go

package eval
import "testing"
func TestNs(t *testing.T) {
runTests(t, []Test{
NewTest("kind-of (ns)").WantOutStrings("ns"),
// A Ns is only equal to itself
NewTest("ns = (ns); eq $ns $ns").WantOutBools(true),
NewTest("eq (ns) (ns)").WantOutBools(false),
NewTest("eq (ns) [&]").WantOutBools(false),
})
}