Remove more process.assert

This commit is contained in:
Ryan Dahl 2011-01-27 17:02:25 -08:00
parent bfb6a67d60
commit fbb74784b5
2 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ common.debug('load modules by absolute id, then change require.paths, ' +
'and load another module with the same absolute id.');
// this will throw if it fails.
var foo = require('../fixtures/require-path/p1/foo');
process.assert(foo.bar.expect === foo.bar.actual);
assert.ok(foo.bar.expect === foo.bar.actual);
assert.equal(require('../fixtures/foo').foo, 'ok',
'require module with no extension');

View File

@ -13,8 +13,8 @@ for (var i = 255; i >= 0; i--) {
JSON.stringify(String.fromCharCode(i)) +
' ' +
S.charCodeAt(0));
process.assert(S.charCodeAt(0) == i);
process.assert(S == String.fromCharCode(i));
assert.ok(S.charCodeAt(0) == i);
assert.ok(S == String.fromCharCode(i));
binaryString += S;
}