Skip to content

Commit

Permalink
Update tools/tck-api/src/test/scala/org/opencypher/tools/tck/values/C…
Browse files Browse the repository at this point in the history
…ypherValueTest.scala

Co-authored-by: Hannes Voigt <[email protected]>
  • Loading branch information
loveleif and hvub committed Jun 16, 2023
1 parent 4e48a4b commit d1d23e2
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@ class CypherValueTest extends AnyFunSuite with Matchers {
)
}

test("maps") {
assertReallyEqual(
CypherValue("[{a: 1, b: 2}, {b: 4, a: 3}]", orderedLists = true),
CypherValue("[{b: 2, a: 1}, {a: 3, b: 4}]", orderedLists = true),
)
assertReallyEqual(
CypherValue("[{a: 1, b: 2}, {b: 4, a: 3}]", orderedLists = false),
CypherValue("[{a: 3, b: 4}, {b: 2, a: 1}]", orderedLists = false),
)
}
private def assertReallyEqual(a: CypherValue, b: CypherValue): Unit = {
a shouldBe a
b shouldBe b
Expand Down

0 comments on commit d1d23e2

Please sign in to comment.