1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00
This commit is contained in:
joshvera 2015-11-06 11:01:11 -05:00
parent d99000562b
commit 93808be85f
2 changed files with 7 additions and 7 deletions

View File

@ -63,15 +63,15 @@
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "--unified"
argument = "--split"
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "https://raw.githubusercontent.com/jquery/jquery/2.1.0/src/effects.js"
argument = "file:///Users/vera/Library/Developer/Xcode/DerivedData/Doubt-gibmbsxjgxflybarnuoisglmgdll/Build/Products/Debug/before.json"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "https://raw.githubusercontent.com/jquery/jquery/2.1.4/src/effects.js"
argument = "file:///Users/vera/Library/Developer/Xcode/DerivedData/Doubt-gibmbsxjgxflybarnuoisglmgdll/Build/Products/Debug/after.json"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>

View File

@ -16,10 +16,10 @@ final class JSONParserTests: XCTestCase {
let expected: Cofree<JSONLeaf, Range<Int>> = Cofree(0..<42, .Keyed(["hello": fixedPairs]))
let actual = Madness.parse(json, input: dictWithArray).right!
let firstIndex = actual.extract
let new: Cofree<JSONLeaf, Range<Int>> = actual.map({ range in
let startI: Int = firstIndex.startIndex.distanceTo(range.startIndex)
let endI: Int = firstIndex.startIndex.distanceTo(range.endIndex)
let firstIndex = actual.extract.1
let new: Cofree<JSONLeaf, Range<Int>> = actual.map({ tuple in
let startI: Int = firstIndex.startIndex.distanceTo(tuple.1.startIndex)
let endI: Int = firstIndex.startIndex.distanceTo(tuple.1.endIndex)
return Range(start: startI, end: endI)
})