GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: add information to assertion · nodejs/node@765a81e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-fs-stat-bigint.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-fs-stat-bigint.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-stat-bigint.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const promiseFs = require('fs').promises;
77
const path = require('path');
88
const tmpdir = require('../common/tmpdir');
99
const { isDate } = require('util').types;
10+
const { inspect } = require('util');
1011

1112
tmpdir.refresh();
1213

@@ -62,7 +63,11 @@ function verifyStats(bigintStats, numStats) {
6263
assert.strictEqual(bigintStats[key], undefined);
6364
assert.strictEqual(numStats[key], undefined);
6465
} else if (Number.isSafeInteger(val)) {
65-
assert.strictEqual(bigintStats[key], BigInt(val));
66+
assert.strictEqual(
67+
bigintStats[key], BigInt(val),
68+
`${inspect(bigintStats[key])} !== ${inspect(BigInt(val))}\n` +
69+
`key=${key}, val=${val}`
70+
);
6671
} else {
6772
assert(
6873
Math.abs(Number(bigintStats[key]) - val) < 1,

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.