<commit_before>//
//  UIFontTests.swift
//  EZSwiftExtensions
//
//  Created by <NAME> on 8/25/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import XCTest

class UIFontTests: XCTestCase {

    

}

<commit_msg><Description> : Adding UIFont tests.<commit_after>//
//  UIFontTests.swift
//  EZSwiftExtensions
//
//  Created by <NAME> on 8/25/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import XCTest
@testable import EZSwiftExtensions

class UIFontTests: XCTestCase {
    
    let TEST_SIZE = CGFloat(10)
    
    let TEST_FONT_TYPE = FontType.Bold
    
    override func setUp() {
        super.setUp()
    }
    
    override func tearDown() {
        super.tearDown()
    }
    
    func testHelveticaNeueFont() {
        let helveticaNeue = UIFont.HelveticaNeue(type: TEST_FONT_TYPE, size: TEST_SIZE)
        XCTAssertEqual(helveticaNeue.fontName, FontName.HelveticaNeue.rawValue + "-" + TEST_FONT_TYPE.rawValue)
        XCTAssertEqual(helveticaNeue.pointSize, TEST_SIZE)
    }
    
    func testAvenirNextFont() {
        let avenirNext = UIFont.AvenirNext(type: FontType.Bold, size: TEST_SIZE)
        XCTAssertEqual(avenirNext.fontName, FontName.AvenirNext.rawValue + "-" + TEST_FONT_TYPE.rawValue)
        XCTAssertEqual(avenirNext.pointSize, TEST_SIZE)
    }
    
    func testAvenirNextRegularFont() {
        let avenirNextRegular = UIFont.AvenirNextRegular(size: TEST_SIZE)
        XCTAssertEqual(avenirNextRegular.fontName, FontName.AvenirNext.rawValue + "-" + FontType.Regular.rawValue)
        XCTAssertEqual(avenirNextRegular.pointSize, TEST_SIZE)
    }
    
    func testAvenirNextDemiBold() {
        let avenirNextDemiBold = UIFont.AvenirNextDemiBold(size: TEST_SIZE)
        XCTAssertEqual(avenirNextDemiBold.fontName, FontName.AvenirNext.rawValue + "-" + FontType.DemiBold.rawValue)
        XCTAssertEqual(avenirNextDemiBold.pointSize, TEST_SIZE)
    }
}


{'fraction_non_alphanumeric': 0.10152551288795371, 'fraction_numerical': 0.010520778537611783, 'mean_word_length': 3.134782608695652, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '809570', 'n_tokens_mistral': 709, 'n_tokens_neox': 663, 'n_words': 108}