Skip to content

Commit

Permalink
Fix tests to run with swift 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Maccharoli committed Sep 23, 2017
1 parent 3c84dc9 commit 765f01f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AttributedTests/AttributesTests.swift
Expand Up @@ -34,8 +34,8 @@ class AttributesTests: XCTestCase {
// NSBaselineOffsetAttributeName

func testBaselineOffset() {
let expected: [String: Any] = [NSBaselineOffsetAttributeName: NSNumber(value: 1)]
let expected: [String: Any] = [NSAttributedStringKey.baselineOffset.rawValue: NSNumber(value: 1)]
let attributed = Attributes().baselineOffset(1)
XCTAssert(attributed.dictionary.keys.first! == expected.keys.first!, "NSBaselineOffsetAttributeName functionality is broken")
XCTAssert(attributed.dictionary.keys.first!.rawValue == expected.keys.first!, "NSBaselineOffsetAttributeName functionality is broken")
}
}

0 comments on commit 765f01f

Please sign in to comment.