<commit_before>//
//  SetFormattingTests.swift
//  SwiftLogger
//
//  Created by <NAME> on 08/08/2016.
//  Copyright © 2016 Spectrum. All rights reserved.
//

import XCTest
@testable import SwiftLogger

class SetFormattingTests: BaseFormattingTests {
    
    func testFormatStringSet() {
        let stringSet = Set(["one", "two", "three", "four"])
        let output = mockLoggingService.formatCollectionAsString(stringSet)
        
        XCTAssert(output.containsString("\n\tone"))
        XCTAssert(output.containsString("\n\ttwo"))
        XCTAssert(output.containsString("\n\tthree"))
        XCTAssert(output.containsString("\n\tfour"))
    }
    
    func testFormatIntSet() {
        let intSet = Set([1, 2, 3, 4])
        let output = mockLoggingService.formatCollectionAsString(intSet)
        
        XCTAssert(output.containsString("\n\t1"))
        XCTAssert(output.containsString("\n\t2"))
        XCTAssert(output.containsString("\n\t3"))
        XCTAssert(output.containsString("\n\t4"))
    }
    
    func testFormatUIntSet() {
        let uintSet = Set<UInt>([1, 2, 3, 4])
        let output = mockLoggingService.formatCollectionAsString(uintSet)
        
        XCTAssert(output.containsString("\n\t1"))
        XCTAssert(output.containsString("\n\t2"))
        XCTAssert(output.containsString("\n\t3"))
        XCTAssert(output.containsString("\n\t4"))
    }
    
    func testFormatFloatSet() {
        let floatSet = Set<Float>([1.1, 2.2, 3.3, 4.4])
        let output = mockLoggingService.formatCollectionAsString(floatSet)
        
        XCTAssert(output.containsString("\n\t1.1"))
        XCTAssert(output.containsString("\n\t2.2"))
        XCTAssert(output.containsString("\n\t3.3"))
        XCTAssert(output.containsString("\n\t4.4"))
    }
    
    func testFormatDoubleSet() {
        let doubleSet = Set<Double>([1.1, 2.2, 3.3, 4.4])
        let output = mockLoggingService.formatCollectionAsString(doubleSet)
        
        XCTAssert(output.containsString("\n\t1.1"))
        XCTAssert(output.containsString("\n\t2.2"))
        XCTAssert(output.containsString("\n\t3.3"))
        XCTAssert(output.containsString("\n\t4.4"))
    }
}<commit_msg>refactored set tests type info<commit_after>//
//  SetFormattingTests.swift
//  SwiftLogger
//
//  Created by <NAME> on 08/08/2016.
//  Copyright © 2016 Spectrum. All rights reserved.
//

import XCTest
@testable import SwiftLogger

class SetFormattingTests: BaseFormattingTests {
    
    func testFormatStringSet() {
        let stringSet: Set<String> = ["one", "two", "three", "four"]
        let output = mockLoggingService.formatCollectionAsString(stringSet)
        
        XCTAssert(output.containsString("\n\tone"))
        XCTAssert(output.containsString("\n\ttwo"))
        XCTAssert(output.containsString("\n\tthree"))
        XCTAssert(output.containsString("\n\tfour"))
    }
    
    func testFormatIntSet() {
        let intSet: Set<Int> = [1, 2, 3, 4]
        let output = mockLoggingService.formatCollectionAsString(intSet)
        
        XCTAssert(output.containsString("\n\t1"))
        XCTAssert(output.containsString("\n\t2"))
        XCTAssert(output.containsString("\n\t3"))
        XCTAssert(output.containsString("\n\t4"))
    }
    
    func testFormatUIntSet() {
        let uintSet: Set<UInt> = [1, 2, 3, 4]
        let output = mockLoggingService.formatCollectionAsString(uintSet)
        
        XCTAssert(output.containsString("\n\t1"))
        XCTAssert(output.containsString("\n\t2"))
        XCTAssert(output.containsString("\n\t3"))
        XCTAssert(output.containsString("\n\t4"))
    }
    
    func testFormatFloatSet() {
        let floatSet: Set<Float> = [1.1, 2.2, 3.3, 4.4]
        let output = mockLoggingService.formatCollectionAsString(floatSet)
        
        XCTAssert(output.containsString("\n\t1.1"))
        XCTAssert(output.containsString("\n\t2.2"))
        XCTAssert(output.containsString("\n\t3.3"))
        XCTAssert(output.containsString("\n\t4.4"))
    }
    
    func testFormatDoubleSet() {
        let doubleSet: Set<Double> = [1.1, 2.2, 3.3, 4.4]
        let output = mockLoggingService.formatCollectionAsString(doubleSet)
        
        XCTAssert(output.containsString("\n\t1.1"))
        XCTAssert(output.containsString("\n\t2.2"))
        XCTAssert(output.containsString("\n\t3.3"))
        XCTAssert(output.containsString("\n\t4.4"))
    }
}
{'fraction_non_alphanumeric': 0.14529331514324692, 'fraction_numerical': 0.027285129604365622, 'mean_word_length': 2.7470187393526406, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4926486', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1407, 'n_words': 205}