StringExtensionTests.swift 720 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // StringExtensionTests.swift
  3. // Kingfisher
  4. //
  5. // Created by Wei Wang on 16/8/14.
  6. // Copyright © 2018年 Wei Wang. All rights reserved.
  7. //
  8. import XCTest
  9. @testable import Kingfisher
  10. class StringExtensionTests: XCTestCase {
  11. override func setUp() {
  12. super.setUp()
  13. // Put setup code here. This method is called before the invocation of each test method in the class.
  14. }
  15. override func tearDown() {
  16. // Put teardown code here. This method is called after the invocation of each test method in the class.
  17. super.tearDown()
  18. }
  19. func testStringMD5() {
  20. let s = "hello"
  21. XCTAssertEqual(s.kf.md5, "5d41402abc4b2a76b9719d911017c592")
  22. }
  23. }