mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-29 15:07:04 +00:00
16 lines
366 B
JavaScript
16 lines
366 B
JavaScript
|
|
exports.print = typeof print !== "undefined" ? print : function () {
|
|
var system = require("system");
|
|
var stdio = system.stdio;
|
|
stdio.print.apply(stdio, arguments);
|
|
};
|
|
|
|
exports.assert = function (guard, message) {
|
|
if (guard) {
|
|
exports.print('PASS ' + message, 'pass');
|
|
} else {
|
|
exports.print('FAIL ' + message, 'fail');
|
|
}
|
|
};
|
|
|