View difference between Paste ID: 2xVRZ9LB and sg4UqcAJ
SHOW: | | - or go back to the newest paste.
1-
def TIME_TABLE = [h: 3600, m:60, s:1]
1+
def a = 1
2
def b = 2
3-
Integer.metaClass.getProperty = { String symbol -> TIME_TABLE[symbol] * delegate}
3+
def c = 3
4
def list = [1,2,3,4,5,6,7]
5-
assert 2.h + 30.m + 50.s  == 9050
5+
6
assert ( a + b ) + c == list[1]
7