updated tests toward fixing #653

This commit is contained in:
satyr
2010-09-27 14:32:26 +09:00
parent 159150c319
commit 72c83f5e43
3 changed files with 37 additions and 51 deletions

View File

@@ -56,10 +56,12 @@ obj = {
getNames: ->
args = ['jane', 'ted']
@accessor(args...)
index: 0
0: {method: -> this is obj[0]}
}
ok obj.getNames() is 'moe jane ted'
ok obj[obj.index++].method([]...), 'should cache base value'
crowd = [
contenders...