From b7a341b8b19583344a893cba4584298ee0899730 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 22 Oct 2015 10:43:20 -0400 Subject: [PATCH] Correct omissions in the tests. --- prototype/DoubtTests/DiffTests.swift | 2 +- prototype/DoubtTests/SESTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/DoubtTests/DiffTests.swift b/prototype/DoubtTests/DiffTests.swift index fc532d467..1a49f89b1 100644 --- a/prototype/DoubtTests/DiffTests.swift +++ b/prototype/DoubtTests/DiffTests.swift @@ -50,7 +50,7 @@ final class DiffTests: XCTestCase { private func equal(a: DiffTests.Diff, _ b: DiffTests.Diff) -> Bool { - return Free.equals(ifPure: Patch.equals(Cofree.equals(annotation: ==, leaf: ==)), ifRoll: ==)(a, b) + return Free.equals(pure: Patch.equals(Cofree.equals(annotation: ==, leaf: ==)), leaf: ==)(a, b) } diff --git a/prototype/DoubtTests/SESTests.swift b/prototype/DoubtTests/SESTests.swift index 316810c4f..4885a6871 100644 --- a/prototype/DoubtTests/SESTests.swift +++ b/prototype/DoubtTests/SESTests.swift @@ -53,7 +53,7 @@ private func SES(a: [Term], _ b: [Term]) -> [Diff] { } private func == (a: [Diff], b: [Diff]) -> Bool { - return a.count == b.count && zip(a, b).lazy.map(Diff.equals(ifPure: Patch.equals(Cofree.equals(annotation: const(true), leaf: ==)), ifRoll: ==)).reduce(true) { $0 && $1 } + return a.count == b.count && zip(a, b).lazy.map(Diff.equals(pure: Patch.equals(Cofree.equals(annotation: const(true), leaf: ==)), leaf: ==)).reduce(true) { $0 && $1 } }