mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Write the fixtures using the typealias.
This commit is contained in:
parent
35617fee70
commit
ed10ec1257
@ -6,8 +6,8 @@ final class AlgorithmTests: XCTestCase {
|
||||
private typealias Term = Cofree<String, Int>
|
||||
private typealias Diff = Free<String, Patch<Term>>
|
||||
|
||||
private let a = Cofree(0, [ Cofree(1, .Leaf("a")), Cofree(2, .Leaf("b")), Cofree(3, .Leaf("c")) ])
|
||||
private let b = Cofree(0, [ Cofree(1, .Leaf("c")), Cofree(2, .Leaf("b")), Cofree(3, .Leaf("a")) ])
|
||||
private let a = Term(0, [ Term(1, .Leaf("a")), Term(2, .Leaf("b")), Term(3, .Leaf("c")) ])
|
||||
private let b = Term(0, [ Term(1, .Leaf("c")), Term(2, .Leaf("b")), Term(3, .Leaf("a")) ])
|
||||
|
||||
|
||||
import Assertions
|
||||
|
Loading…
Reference in New Issue
Block a user