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

Add some test fixtures.

This commit is contained in:
Rob Rix 2015-11-05 10:56:36 -05:00
parent b60e3aac24
commit f13d2068ab

View File

@ -1,4 +1,17 @@
final class LocationTests: XCTestCase {
}
private let leaf = Cofree(1, .Leaf("a string"))
private let term: Cofree<String, Int> = Cofree(0, .Indexed([
leaf,
Cofree(2, .Leaf("b string")),
Cofree(3, .Keyed([
"a": Cofree(4, .Leaf("a nested string")),
"b": Cofree(5, .Leaf("b nested string")),
])),
]))
@testable import Doubt
import XCTest