Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
map = [:]
|
||||
map[7] = 7
|
||||
map['foo'] = 'foovalue'
|
||||
map.put('bar', 'barvalue')
|
||||
map.moo = 'moovalue'
|
||||
|
||||
assert 7 == map[7]
|
||||
assert 'foovalue' == map.foo
|
||||
assert 'barvalue' == map['bar']
|
||||
assert 'moovalue' == map.get('moo')
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
map = [7:7, foo:'foovalue', bar:'barvalue', moo:'moovalue']
|
||||
|
||||
assert 7 == map[7]
|
||||
assert 'foovalue' == map.foo
|
||||
assert 'barvalue' == map['bar']
|
||||
assert 'moovalue' == map.get('moo')
|
||||
Loading…
Add table
Add a link
Reference in a new issue