1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 17:04:47 +03:00
semantic/prototype/DoubtTests/TermTests.swift
2015-10-23 11:46:47 -04:00

23 lines
489 B
Swift

final class TermTests: XCTestCase {
override static func setUp() {
sranddev()
}
func testEqualityIsReflexive() {
property("equality is reflexive") <- forAll { (term: RangedTerm) in
Cofree.equals(annotation: ==, leaf: ==)(term.term, term.term)
}
}
func testEqualTermsZipCleanly() {
property("equal terms zip to a non-nil value") <- forAll { (term: RangedTerm) in
Cofree.zip(term.term, term.term) != nil
}
}
}
@testable import Doubt
import SwiftCheck
import XCTest