Created
December 29, 2011 18:19
-
-
Save bjouhier/1535403 to your computer and use it in GitHub Desktop.
my first ace test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node-streamline | |
"use strict"; | |
require('coffee-script') | |
var test = require("ace/src/lib/ace"); | |
test(1, function(_) { | |
function Foo(x, _) { | |
process.nextTick(_); | |
this.x = x; | |
} | |
Foo.prototype.plus1 = function() { | |
return this.x + 1; | |
} | |
this.equal(new Foo(4, _).plus1(), 5, "constructor ok"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment