mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 16:54:21 +03:00
10 lines
137 B
Plaintext
10 lines
137 B
Plaintext
def testScope() {
|
|
x = 5
|
|
def func() {
|
|
assertEquals(5, x)
|
|
x += 10
|
|
assertEquals(15, x)
|
|
}
|
|
func();
|
|
assertEquals(15, x)
|
|
} |