Create a new assert.eq helper that assigns meaning to its operands (SERVER-66506)

[SERVER-69961] Assign expected / actual for assert.setEq javascript function Created: 26/Sep/22  Updated: 29/Oct/23  Resolved: 28/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Sub-task Priority: Major - P3
Reporter: Romans Kasperovics Assignee: Romans Kasperovics
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-32665 tojson should print the elements when... Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2022-09-19, QE 2022-10-03, QE 2022-10-17, QE 2022-10-31, QE 2022-11-14, QE 2022-11-28, QE 2022-12-12, QE 2022-12-26, QE 2023-01-09, QE 2023-01-23
Participants:

 Description   

assert.setEq currently has very few use-cases which can be modified to use expected / actual arguments and print the corresponding error message.



 Comments   
Comment by Githook User [ 27/Sep/22 ]

Author:

{'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}

Message: SERVER-69961 Add expected-actual semantics to assert.setEq arguments
Branch: master
https://github.com/mongodb/mongo/commit/16e6575d795e785eb0ca7e02efcd1f86df3705cb

Generated at Thu Feb 08 06:14:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.