//  Copyright (c) 2015 Rob Rix. All rights reserved.

final class IgnoreTests: XCTestCase {
	let ignored = %"x"

	func testIgnoredInputDoesNotGetConcatenatedAtLeft() {
		assertTree(ignored *> %"y", "xy", ==, "y")
	}

	func testIgnoredInputDoesNotGetConcatenatedAtRight() {
		assertTree(%"y" <* ignored, "yx", ==, "y")
	}

	func testRepeatedIgnoredEmptyParsesAreDropped() {
		assertTree(ignored* *> %"y", "y", ==, "y")
	}

	func testRepeatedIgnoredParsesAreDropped() {
		assertTree(ignored* *> %"y", "xxy", ==, "y")
	}
}


// MARK: - Imports

import Assertions
import Madness
import XCTest

//  Copyright (c) 2015 Rob Rix. All rights reserved.

final class IgnoreTests: XCTestCase {
	let ignored = %"x"

	func testIgnoredInputDoesNotGetConcatenatedAtLeft() {
		assertTree(ignored *> %"y", "xy", ==, "y")
	}

	func testIgnoredInputDoesNotGetConcatenatedAtRight() {
		assertTree(%"y" <* ignored, "yx", ==, "y")
	}

	func testIgnoredInputIsDroppedFromAlternationsAtLeft() {
		assertTree(ignored ||> %"y", "y", ==, "y")
	}

	func testIgnoredInputIsDroppedFromAlternationsAtRight() {
		assertTree(%"y" <|| ignored, "y", ==, "y")
	}

	func testRepeatedIgnoredEmptyParsesAreDropped() {
		assertTree(ignored* *> %"y", "y", ==, "y")
	}

	func testRepeatedIgnoredParsesAreDropped() {
		assertTree(ignored* *> %"y", "xxy", ==, "y")
	}
}


// MARK: - Imports

import Assertions
import Madness
import XCTest

--- 
+++ 
@@ -9,14 +9,6 @@
 
 	func testIgnoredInputDoesNotGetConcatenatedAtRight() {
 		assertTree(%"y" <* ignored, "yx", ==, "y")
-	}
-
-	func testIgnoredInputIsDroppedFromAlternationsAtLeft() {
-		assertTree(ignored ||> %"y", "y", ==, "y")
-	}
-
-	func testIgnoredInputIsDroppedFromAlternationsAtRight() {
-		assertTree(%"y" <|| ignored, "y", ==, "y")
 	}
 
 	func testRepeatedIgnoredEmptyParsesAreDropped() {
Remove the tests of half-dropped alternation.
