xgo/runtime/vm_undefined_test.go
2019-01-11 02:27:28 -08:00

12 lines
351 B
Go

package runtime_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)
}