Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Set / prototype / symmetricDifference / result-order.js
blobb94f1f37ba9c003427599ffb2c207874f3389632
1 // |reftest| skip -- set-methods is not supported
2 // Copyright (C) 2023 Kevin Gibbons. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-set.prototype.symmetricdifference
6 description: Set.prototype.symmetricDifference result ordering
7 features: [set-methods]
8 includes: [compareArray.js]
9 ---*/
11 // results are ordered as in this, then as in other
13   const s1 = new Set([1, 2, 3, 4]);
14   const s2 = new Set([6, 5, 4, 3]);
16   assert.compareArray([...s1.symmetricDifference(s2)], [1, 2, 6, 5]);
20   const s1 = new Set([6, 5, 4, 3]);
21   const s2 = new Set([1, 2, 3, 4]);
23   assert.compareArray([...s1.symmetricDifference(s2)], [6, 5, 1, 2]);
26 reportCompare(0, 0);