Source

jaspyon / jaspyon / test / test_scope.py

Full commit
1
2
3
4
5
6
7
8

from jaspyon.test.test_interp import assertv

def test_variable_deletion():
    assertv("var x = 3; delete this.x;", False)
    assertv("x = 3; delete this.x;", True)
    assertv("var x = 3; delete this.x; x", 3)