1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Extract the other inner leaf.

This commit is contained in:
Rob Rix 2015-11-05 11:34:18 -05:00
parent eda85a1e40
commit 6430f0222e

View File

@ -37,9 +37,10 @@ final class LocationTests: XCTestCase {
private let leafA = Cofree(1, .Leaf("a string"))
private let leafB = Cofree(2, .Leaf("b string"))
private let innerLeafA = Cofree(4, .Leaf("a nested string"))
private let innerLeafB = Cofree(5, .Leaf("b nested string"))
private let keyed = Cofree(3, .Keyed([
"a": innerLeafA,
"b": Cofree(5, .Leaf("b nested string")),
"b": innerLeafB,
]))
private let term: Cofree<String, Int> = Cofree(0, .Indexed([
leafA,