Skip to content

Commit

Permalink
fixed Linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Jun 4, 2016
1 parent 2c01199 commit c43c06e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Sources/CacaoTests/FontTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ final class FontTests: XCTestCase {

func testCreateSimpleFont() {

guard let font = Font(name: "MicrosoftSansSerif", size: 17)
guard let font = Font(name: "TimesNewRoman", size: 17)
else { XCTFail("Could not create font"); return }

let expectedFullName = "Microsoft Sans Serif"
let expectedFullName = "Times New Roman"

XCTAssert(font.name == font.silicaFont.name)
XCTAssert(expectedFullName == font.silicaFont.scaledFont.fullName, "\(expectedFullName) == \(font.silicaFont.scaledFont.fullName)")
}

func testCreateTraitFont() {

guard let font = Font(name: "MicrosoftSansSerif-Bold", size: 17)
guard let font = Font(name: "TimesNewRoman-Bold", size: 17)
else { XCTFail("Could not create font"); return }

let expectedFullName = "Microsoft Sans Serif"
let expectedFullName = "Times New Roman"

XCTAssert(font.name == font.silicaFont.name)
XCTAssert(expectedFullName == font.silicaFont.scaledFont.fullName, "\(expectedFullName) == \(font.silicaFont.scaledFont.fullName)")
Expand Down
2 changes: 1 addition & 1 deletion Sources/CacaoTests/TestStyleKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public func NSString(string: String) -> String {
return string
}

public class TestStyleKit : NSObject {
public class TestStyleKit {

//// Cache

Expand Down

0 comments on commit c43c06e

Please sign in to comment.