From d37f9bb355d9aadeab93f6cd8621d8387ebd9464 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 5 Nov 2015 11:13:50 -0500 Subject: [PATCH] Extract an inner leaf. --- prototype/DoubtTests/LocationTests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prototype/DoubtTests/LocationTests.swift b/prototype/DoubtTests/LocationTests.swift index 3cce8a3b1..24c019986 100644 --- a/prototype/DoubtTests/LocationTests.swift +++ b/prototype/DoubtTests/LocationTests.swift @@ -27,11 +27,12 @@ final class LocationTests: XCTestCase { private let leaf = Cofree(1, .Leaf("a string")) +private let innerLeaf = Cofree(4, .Leaf("a nested string")) private let term: Cofree = Cofree(0, .Indexed([ leaf, Cofree(2, .Leaf("b string")), Cofree(3, .Keyed([ - "a": Cofree(4, .Leaf("a nested string")), + "a": innerLeaf, "b": Cofree(5, .Leaf("b nested string")), ])), ]))