Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import XCTest
- @testable import <#project#>
- class StringMD5Test: XCTestCase {
- func testMD5() {
- let string = "soroush khanlou"
- XCTAssertEqual(string.md5, "954d741d14b14002d1ba88f600eee635")
- }
- func testSHA1() {
- let string = "soroush khanlou"
- XCTAssertEqual(string.sha1, "fceb4911d567baae6c2027b3024e3b03175450d3")
- }
- }
Add Comment
Please, Sign In to add comment