diff --git a/LICENSE.txt b/LICENSE.txt index d1c7b60..a897f27 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -21,3 +21,4 @@ Includes swift-tap https://github.com/dankogai/swift-tap Copyright (c) 2016 Dan Kogai Released under the MIT License. +- See "Sources/Test/TAP.swift" diff --git a/Sources/Test/TAP.swift b/Sources/Test/TAP.swift index de01e92..ae7173d 100644 --- a/Sources/Test/TAP.swift +++ b/Sources/Test/TAP.swift @@ -1,3 +1,5 @@ +// https://github.com/dankogai/swift-tap/blob/master/tap/tap.swift + // // tap.swift // tap @@ -67,8 +69,8 @@ open class TAP { @discardableResult open func eq(_ actual:T?, _ expected:T?, _ message:String = "")->Bool { if ok(actual == expected, message) { return true } - print("# got: \(actual)") - print("# expected: \(expected)") + print("# got: \(actual as T?)") + print("# expected: \(expected as T?)") return false } /// ok if arrays are `actual` == `expected` @@ -99,8 +101,8 @@ open class TAP { @discardableResult open func ne(_ actual:T?, _ expected:T?, _ message:String = "")->Bool { if ok(actual != expected, message) { return true } - print("# got: \(actual)") - print("# expected: anthing but \(expected)") + print("# got: \(actual as T?)") + print("# expected: anthing but \(expected as T?)") return false } /// ok if arrays are `actual` == `expected`