mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-08 09:47:09 +00:00
fixes
This commit is contained in:
@@ -68,13 +68,13 @@ class SortedMapLikeBinaryTreeNodeTests {
|
|||||||
parentNode ?.getLeftNode() === expectedNode || parentNode ?.getRightNode() === expectedNode,
|
parentNode ?.getLeftNode() === expectedNode || parentNode ?.getRightNode() === expectedNode,
|
||||||
"It is expected, that parent node with data ${parentNode ?.key} will be parent of ${expectedNode.key}, but its left subnode is ${parentNode ?.getLeftNode() ?.key} and right one is ${parentNode ?.getRightNode() ?.key}"
|
"It is expected, that parent node with data ${parentNode ?.key} will be parent of ${expectedNode.key}, but its left subnode is ${parentNode ?.getLeftNode() ?.key} and right one is ${parentNode ?.getRightNode() ?.key}"
|
||||||
)
|
)
|
||||||
|
assertTrue(
|
||||||
|
foundNode != null && expectedNode.deepEquals(foundNode)
|
||||||
|
)
|
||||||
|
|
||||||
zeroNode.upsertSubNode(i, -i)
|
zeroNode.upsertSubNode(i, -i)
|
||||||
val foundModifiedNode = zeroNode.findNode(i)
|
val foundModifiedNode = zeroNode.findNode(i)
|
||||||
assertEquals(foundNode ?.value, foundModifiedNode ?.value ?.times(-1))
|
assertEquals(foundNode ?.value, foundModifiedNode ?.value ?.times(-1))
|
||||||
assertTrue(
|
|
||||||
foundNode != null && foundModifiedNode != null && foundNode.deepEquals(foundModifiedNode)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// @Test
|
// @Test
|
||||||
|
Reference in New Issue
Block a user