File tree Expand file tree Collapse file tree
jsonpath4k/src/commonTest/kotlin/at/asitplus/jsonpath/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package at.asitplus.jsonpath.core
22
3+ import io.kotest.matchers.maps.shouldHaveSize
34import io.kotest.matchers.shouldBe
5+ import io.kotest.matchers.shouldNot
6+ import io.kotest.matchers.shouldNotBe
47import kotlin.test.Test
58
69@Suppress(" unused" )
710class NormalizedJsonPathTest {
811 @Test
9- fun equivalence () {
12+ fun equality () {
1013 NormalizedJsonPath () shouldBe NormalizedJsonPath ()
1114 NormalizedJsonPath (" name" ) shouldBe NormalizedJsonPath () + " name"
1215 NormalizedJsonPath (1 ) shouldBe NormalizedJsonPath () + 1u
16+
17+ mapOf (
18+ NormalizedJsonPath () to " 1" ,
19+ NormalizedJsonPath () to " 2" ,
20+ ) shouldHaveSize 1
21+ }
22+ @Test
23+ fun inequality () {
24+ NormalizedJsonPath (1 ) shouldNotBe NormalizedJsonPath ()
25+ NormalizedJsonPath (1 ) shouldNotBe NormalizedJsonPath () + " 1"
26+ NormalizedJsonPath (1 ) shouldNotBe NormalizedJsonPath () + 2
27+ NormalizedJsonPath (" 1" ) shouldNotBe NormalizedJsonPath ()
28+ NormalizedJsonPath (" 1" ) shouldNotBe NormalizedJsonPath () + " 2"
29+ NormalizedJsonPath (" 1" ) shouldNotBe NormalizedJsonPath () + 1
30+ NormalizedJsonPath () shouldNotBe NormalizedJsonPath () + " 1"
31+ NormalizedJsonPath () shouldNotBe NormalizedJsonPath () + 1
1332 }
1433}
You can’t perform that action at this time.
0 commit comments