<commit_before>//
// Collection_Tests.swift
// SwiftShell
//
// Created by <NAME> on 08.12.2015.
//
//

import XCTest
@testable import SwiftShell

class LazySplitGenerator_Tests: XCTestCase {

	func lazySplitToArray (allowEmptySlices allowEmptySlices: Bool) (_ s: String) -> [String] {
		let seq: LazySplitSequence = s.characters.lazy.split("," as Character, allowEmptySlices: allowEmptySlices)
		return seq.map {String($0)}
	}
<commit_msg>Stop using curried function declaration syntax.<commit_after>//
// Collection_Tests.swift
// SwiftShell
//
// Created by <NAME> on 08.12.2015.
//
//

import XCTest
@testable import SwiftShell

class LazySplitGenerator_Tests: XCTestCase {

	func lazySplitToArray (allowEmptySlices allowEmptySlices: Bool) -> (String) -> [String] {
		return { s in
			let seq: LazySplitSequence = s.characters.lazy.split("," as Character, allowEmptySlices: allowEmptySlices)
			return seq.map {String($0)}
		}
	}

{'fraction_non_alphanumeric': 0.12419700214132762, 'fraction_numerical': 0.019271948608137045, 'mean_word_length': 4.3125, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1780807', 'n_tokens_mistral': 345, 'n_tokens_neox': 314, 'n_words': 77}