<commit_before>//  Copyright (c) 2014 <NAME>. All rights reserved.

import Prelude
import XCTest

final class ApplicationTests: XCTestCase {
	func testForwardApplication() {
		let digits = 100 |> toString |> countElements
		XCTAssertEqual(digits, 3)
	}

	func testBackwardApplication() {
		let digits = countElements <| toString <| 100
		XCTAssertEqual(digits, 3)
	}
}<commit_msg>Separate sections for the tests of forward & backward application.<commit_after>//  Copyright (c) 2014 <NAME>. All rights reserved.

import Prelude
import XCTest

final class ApplicationTests: XCTestCase {
	// MARK: Forward function application

	func testForwardUnaryApplication() {
		let digits = 100 |> toString |> countElements
		XCTAssertEqual(digits, 3)
	}

	// MARK: Backward function application

	func testBackwardApplication() {
		let digits = countElements <| toString <| 100
		XCTAssertEqual(digits, 3)
	}
}
{'fraction_non_alphanumeric': 0.09343715239154617, 'fraction_numerical': 0.026696329254727477, 'mean_word_length': 4.660377358490566, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4720496', 'n_tokens_mistral': 314, 'n_tokens_neox': 272, 'n_words': 84}