mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-29 15:07:04 +00:00
9 lines
286 B
JavaScript
9 lines
286 B
JavaScript
var test = require('test');
|
|
var a = require('a');
|
|
var foo = a.foo;
|
|
test.assert(a.foo() == a, 'calling a module member');
|
|
test.assert(foo() == (function (){return this})(), 'members not implicitly bound');
|
|
a.set(10);
|
|
test.assert(a.get() == 10, 'get and set')
|
|
test.print('DONE', 'info');
|