-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Xpath to get correct equals method
- Loading branch information
1 parent
f0acf03
commit 3e966c2
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
backend/mockingbird/src/test/scala/ru/tinkoff/tcb/xpath/XpathSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package ru.tinkoff.tcb.xpath | ||
|
||
import org.scalatest.funsuite.AnyFunSuite | ||
import org.scalatest.matchers.should.Matchers | ||
|
||
class XpathSpec extends AnyFunSuite with Matchers { | ||
|
||
test("Xpath equals") { | ||
val xp1 = Xpath.fromString("//user/@id") | ||
val xp2 = Xpath.fromString("//user/@id") | ||
|
||
xp1 shouldBe xp2 | ||
} | ||
|
||
} |