12 lines
346 B
Go
12 lines
346 B
Go
package vm_test
|
|
|
|
import "testing"
|
|
|
|
func TestUndefined(t *testing.T) {
|
|
expect(t, `out = undefined`, undefined())
|
|
expect(t, `out = undefined == undefined`, true)
|
|
expect(t, `out = undefined == 1`, false)
|
|
expect(t, `out = 1 == undefined`, false)
|
|
expect(t, `out = undefined == float([])`, true)
|
|
expect(t, `out = float([]) == undefined`, true)
|
|
}
|