Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.
Description
Version
v24.0.0-pre
Platform
Darwin prot-2.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031 arm64 Subsystem
No response
What steps will reproduce the bug?
Following what still needed to be done in #54630 , I kept looking for discrepancies between what works with assert.deepStrictEqual and what should work with assert.partialDeepStrictEqual but it does not.
constassert=require('assert');assert.throws(()=>assert.partialDeepStrictEqual(newArrayBuffer(3),newSharedArrayBuffer(3)),Error);assert.throws(()=>assert.partialDeepStrictEqual(newInt16Array(3),newUint16Array(3)),Error);assert.partialDeepStrictEqual(newInt16Array([1,2,3]),newInt16Array([1,2,3]));all the tests above will fail, while they should not
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
constassert=require('assert');assert.throws(()=>assert.partialDeepStrictEqual(newArrayBuffer(3),newSharedArrayBuffer(3)),Error);assert.throws(()=>assert.partialDeepStrictEqual(newInt16Array(3),newUint16Array(3)),Error);assert.partialDeepStrictEqual(newInt16Array([1,2,3]),newInt16Array([1,2,3]));all the tests above will fail, while they should not
What do you see instead?
the tests above will fail
Additional information
No response
pmarchini
Metadata
Metadata
Assignees
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.