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

final class ReductionTests: XCTestCase {
	let reduction = %"x" --> { $0.uppercaseString }

	func testMapsParseTreesWithAFunction() {
		assertTree(reduction, "x", ==, "X")
	}
}


// MARK: - Imports

import Madness
import XCTest<commit_msg>Test that it parses using its parser operand.<commit_after>//  Copyright (c) 2015 <NAME>. All rights reserved.

final class ReductionTests: XCTestCase {
	let reduction = %"x" --> { $0.uppercaseString }

	func testMapsParseTreesWithAFunction() {
		assertTree(reduction, "x", ==, "X")
	}

	func testRejectsInputRejectedByItsParser() {
		assertUnmatched(reduction, "y")
	}
}


// MARK: - Imports

import Madness
import XCTest
{'fraction_non_alphanumeric': 0.1346153846153846, 'fraction_numerical': 0.013736263736263736, 'mean_word_length': 4.360294117647059, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '907110', 'n_tokens_mistral': 271, 'n_tokens_neox': 246, 'n_words': 64}