Skip to content

Instantly share code, notes, and snippets.

@Fahrni Fahrni/CCswiftTest.swift
Last active Nov 20, 2016

Embed
What would you like to do?
Using Objective-C++ from Swift
func testCreateDeleteMaleCalculate() {
guard let cc = PKMCreatinineClearance(40, height: 75, weight: 70, scr: 1.0, gender: PKMMale) else {
XCTFail("Create Creatinine Clearance Male Instance failed")
return
}
let clcr = cc.calculate()
XCTAssertEqualWithAccuracy(clcr, 97.2, accuracy: 0.2, "Male clcr should be around 97.2, range allowed to be +/- 0.2")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.