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