UNPKG
nodobjc-x
Version:
latest (2.1.1)
2.1.1
The Node.js ⇆ Objective-C bridge
github.com/TooTallNate/NodObjC
TooTallNate/NodObjC
nodobjc-x
/
test
/
array.js
11 lines
(7 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
$ =
require
(
'../'
) , assert =
require
(
'assert'
) $.
import
(
'Foundation'
)
var
pool = $.
NSAutoreleasePool
(
'alloc'
)(
'init'
) , array = $.
NSMutableArray
(
'arrayWithCapacity'
,
10
) assert.
equal
(
array
(
'count'
),
0
) assert.
equal
(array.
toString
(),
'(\n)'
)