 }
 
 class FutureDebugTests: XCTestCase {
+    let testIdentifier = "testFutureIdentifier"
     
     func testStringLastPathComponent() {
         XCTAssertEqual("/tmp/scratch.tiff".lastPathComponent, "scratch.tiff")

//

import XCTest
@testable import BrightFutures

class TestLogger: LoggerType {

        XCTAssertEqual("/".lastPathComponent, "/")
    }
    
    func testDebugFutureSuccessWithIdentifier() {
        let logger = TestLogger()
        
        let f = Future<Void, NoError>(value: ()).debug(testIdentifier, logger: logger)
        let debugExpectation = self.expectation(description: "debugLogged")
        
        f.onSuccess {
            XCTAssertEqual(logger.lastLoggedMessage, "Future \(self.testIdentifier) succeeded")
            debugExpectation.fulfill()
        }
        
        self.waitForExpectations(timeout: 2, handler: nil)
    }
}
