<commit_before>//
//  TCPModeSpec.swift
//  Tests
//
//  Created by <NAME> on 18.06.17.
//

import XCTest
@testable import DarkLightning

class TCPModeSpec: XCTestCase {
    
	func test_GIVEN_TCPMode_WHEN_boolValue_AND_valueIsTrue_THEN_tcpModeShouldBeTrue() {
		let tcpMode = Memory<Bool>(initialValue: false)
		TCPMode(
			tcpMode: tcpMode,
			queue: DispatchQueue.main,
			delegate: DeviceDelegateFake(),
			device: DeviceFake()<commit_msg>Add missing unit test<commit_after>//
//  TCPModeSpec.swift
//  Tests
//
//  Created by <NAME> on 18.06.17.
//

import XCTest
@testable import DarkLightning

class TCPModeSpec: XCTestCase {
	
	func test_GIVEN_TCPMode_WHEN_boolValue_THEN_tcpModeShouldReturnUnderlyingValue() {
		XCTAssertTrue(
			TCPMode(
				tcpMode: Memory<Bool>(initialValue: true),
				queue: DispatchQueue.main,
				delegate: DeviceDelegateFake(),
				device: DeviceFake()
			).boolValue
		)
	}
	
	func test_GIVEN_TCPMode_WHEN_boolValue_AND_valueIsTrue_THEN_tcpModeShouldBeTrue() {
		let tcpMode = Memory<Bool>(initialValue: false)
		TCPMode(
			tcpMode: tcpMode,
			queue: DispatchQueue.main,
			delegate: DeviceDelegateFake(),
			device: DeviceFake()
{'fraction_non_alphanumeric': 0.10128755364806867, 'fraction_numerical': 0.010300429184549357, 'mean_word_length': 4.4485981308411215, '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': '6934539', 'n_tokens_mistral': 456, 'n_tokens_neox': 403, 'n_words': 78}