mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 02:57:52 +08:00
86534000d8
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.
14 lines
317 B
Go
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),
|
|
})
|
|
}
|