Skip to content

Commit

Permalink
test: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Feb 24, 2025
1 parent 26a34cb commit ca36e87
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ export function runTests() {
const codeResult = normalize(input);
const nodeResult = path.normalize(input);

console.log(`Input : '${input}'`);
console.log(`Code : '${codeResult}'`);
console.log(`Node.js: '${nodeResult}'`);
console.log(`Path: '${input}'`);
console.log(`Code: '${codeResult}'`);
console.log(`Node: '${nodeResult}'`);

// 已知差异处理

try {
assert.strictEqual(codeResult, nodeResult);

console.log(`✅ Matched\n`);
} catch (err) {
console.error(`❎ Mismatch: ${err.message}\n`);
} catch (error) {
console.error(error.stack);
console.log(`\n`);
}
});
}
Expand Down

0 comments on commit ca36e87

Please sign in to comment.