converted the tests to use optional parentheses -- lot's of little subtleties to work out

This commit is contained in:
Jeremy Ashkenas
2010-01-24 23:40:45 -05:00
parent 70e3a6ef2f
commit a5d39efdd2
25 changed files with 106 additions and 101 deletions

View File

@@ -18,19 +18,19 @@ ThirdChild extends SecondChild
ThirdChild::func: string =>
super('three/') + string
result: (new ThirdChild()).func('four')
result: (new ThirdChild()).func 'four'
print(result is 'zero/one/two/three/four')
print result is 'zero/one/two/three/four'
TopClass: arg =>
this.prop: 'top-' + arg
SuperClass: arg =>
super('super-' + arg)
super 'super-' + arg
SubClass: =>
super('sub')
super 'sub'
SuperClass extends TopClass
SubClass extends SuperClass