<commit_before>//
//  VersionTest.swift
//  Gollum
//
//  Created by eduardo.ferreira on 5/28/16.
//  Copyright © 2016 eduardoeof. All rights reserved.
//

import XCTest

class VersionTest: XCTestCase {
    var version: Version!
    
    override func setUp() {
        super.setUp()
        
        version = Version(stringLiteral: "A:0.5")
    }

    //MARK: - Tests cases
    
    func testInitWithStringLiteralTypeValue() {
        XCTAssertEqual(version.name, "A")
        XCTAssertEqual(version.probability, 0.5)
    }

    func testInitWithExtendedGraphemeClusterLiteralTypeValue() {
        version = Version(extendedGraphemeClusterLiteral: "A:0.4")
        
        XCTAssertEqual(version.name, "A")
        XCTAssertEqual(version.probability, 0.4)
    }
    
    func testInitWithUnicodeScalarLiteralTypeValue() {
        version = Version(unicodeScalarLiteral: "A:0.3")
        
        XCTAssertEqual(version.name, "A")
        XCTAssertEqual(version.probability, 0.3)
    }
    
    func testEqualableOperator() {
        let version2 = Version(stringLiteral: "A:0.5")
        
        XCTAssert(version == version2)
    }
    
//    func testInitWithoutProbabilityValue() {
//        version = Version(stringLiteral: "A")
//    }
//    
//    func testInitWithoutNameValue() {
//        version = Version(stringLiteral: "0.5")
//    }
//    
//    func testInitWithProbabilityNotFloatValue() {
//        version = Version(stringLiteral: "A:A")
//    }
}<commit_msg>Mark comment refactor<commit_after>//
//  VersionTest.swift
//  Gollum
//
//  Created by eduardo.ferreira on 5/28/16.
//  Copyright © 2016 eduardoeof. All rights reserved.
//

import XCTest

class VersionTest: XCTestCase {
    var version: Version!
    
    override func setUp() {
        super.setUp()
        
        version = Version(stringLiteral: "A:0.5")
    }

    //MARK: - Test cases
    
    func testInitWithStringLiteralTypeValue() {
        XCTAssertEqual(version.name, "A")
        XCTAssertEqual(version.probability, 0.5)
    }

    func testInitWithExtendedGraphemeClusterLiteralTypeValue() {
        version = Version(extendedGraphemeClusterLiteral: "A:0.4")
        
        XCTAssertEqual(version.name, "A")
        XCTAssertEqual(version.probability, 0.4)
    }
    
    func testInitWithUnicodeScalarLiteralTypeValue() {
        version = Version(unicodeScalarLiteral: "A:0.3")
        
        XCTAssertEqual(version.name, "A")
        XCTAssertEqual(version.probability, 0.3)
    }
    
    func testEqualableOperator() {
        let version2 = Version(stringLiteral: "A:0.5")
        
        XCTAssert(version == version2)
    }
    
//    func testInitWithoutProbabilityValue() {
//        version = Version(stringLiteral: "A")
//    }
//    
//    func testInitWithoutNameValue() {
//        version = Version(stringLiteral: "0.5")
//    }
//    
//    func testInitWithProbabilityNotFloatValue() {
//        version = Version(stringLiteral: "A:A")
//    }
}
{'fraction_non_alphanumeric': 0.12133468149646107, 'fraction_numerical': 0.01820020222446916, 'mean_word_length': 2.3310886644219977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5968098', 'n_tokens_mistral': 970, 'n_tokens_neox': 932, 'n_words': 162}