-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from skelpo/develop
Fix Cell Order When Encoding Data to CSV Format
- Loading branch information
Showing
9 changed files
with
187 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/*.xcodeproj | ||
/build | ||
/DerivedData | ||
.swiftpm/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import Foundation | ||
|
||
// '\t' => 9 | ||
// '\n' => 10 | ||
// '\r' => 13 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
#if !canImport(ObjectiveC) | ||
import XCTest | ||
|
||
extension DecoderTests { | ||
// DO NOT MODIFY: This is autogenerated, use: | ||
// `swift test --generate-linuxmain` | ||
// to regenerate. | ||
static let __allTests__DecoderTests = [ | ||
("testAsyncDecode", testAsyncDecode), | ||
("testAsyncDecodeSpeed", testAsyncDecodeSpeed), | ||
("testSyncDecode", testSyncDecode), | ||
("testSyncDecodeSpeed", testSyncDecodeSpeed), | ||
] | ||
} | ||
|
||
extension EncoderTests { | ||
// DO NOT MODIFY: This is autogenerated, use: | ||
// `swift test --generate-linuxmain` | ||
// to regenerate. | ||
static let __allTests__EncoderTests = [ | ||
("testAsyncEncode", testAsyncEncode), | ||
("testEscapingDelimiters", testEscapingDelimiters), | ||
("testMeasureAsyncEncode", testMeasureAsyncEncode), | ||
("testMeasureSyncEncode", testMeasureSyncEncode), | ||
("testSyncEncode", testSyncEncode), | ||
] | ||
} | ||
|
||
extension ParserTests { | ||
// DO NOT MODIFY: This is autogenerated, use: | ||
// `swift test --generate-linuxmain` | ||
// to regenerate. | ||
static let __allTests__ParserTests = [ | ||
("testChunkedParsing", testChunkedParsing), | ||
("testMeasureChunkedParse", testMeasureChunkedParse), | ||
("testMeasureFullParse", testMeasureFullParse), | ||
("testParserInit", testParserInit), | ||
("testParserParse", testParserParse), | ||
] | ||
} | ||
|
||
extension SerializerTests { | ||
// DO NOT MODIFY: This is autogenerated, use: | ||
// `swift test --generate-linuxmain` | ||
// to regenerate. | ||
static let __allTests__SerializerTests = [ | ||
("testChunkedSerialize", testChunkedSerialize), | ||
("testEscapedDelimiter", testEscapedDelimiter), | ||
("testMeasuerSyncSerializer", testMeasuerSyncSerializer), | ||
("testMeasureChunkedSerialize", testMeasureChunkedSerialize), | ||
("testSyncSerialize", testSyncSerialize), | ||
] | ||
} | ||
|
||
extension StressTests { | ||
// DO NOT MODIFY: This is autogenerated, use: | ||
// `swift test --generate-linuxmain` | ||
// to regenerate. | ||
static let __allTests__StressTests = [ | ||
("testMeasureAsyncDecoding", testMeasureAsyncDecoding), | ||
("testMeasureAsyncEncoding", testMeasureAsyncEncoding), | ||
("testMeasureAsyncParsing", testMeasureAsyncParsing), | ||
("testMeasureAsyncSerialize", testMeasureAsyncSerialize), | ||
("testMeasureSyncDecoding", testMeasureSyncDecoding), | ||
("testMeasureSyncEncoding", testMeasureSyncEncoding), | ||
("testMeasureSyncParsing", testMeasureSyncParsing), | ||
("testMeasureSyncSerialize", testMeasureSyncSerialize), | ||
] | ||
} | ||
|
||
extension UtilityTests { | ||
// DO NOT MODIFY: This is autogenerated, use: | ||
// `swift test --generate-linuxmain` | ||
// to regenerate. | ||
static let __allTests__UtilityTests = [ | ||
("testBytesToDouble", testBytesToDouble), | ||
("testBytesToFloat", testBytesToFloat), | ||
("testBytesToInt", testBytesToInt), | ||
("testMeasureBytesToDouble", testMeasureBytesToDouble), | ||
("testMeasureBytesToFloat", testMeasureBytesToFloat), | ||
("testMeasureBytesToInt", testMeasureBytesToInt), | ||
] | ||
} | ||
|
||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(DecoderTests.__allTests__DecoderTests), | ||
testCase(EncoderTests.__allTests__EncoderTests), | ||
testCase(ParserTests.__allTests__ParserTests), | ||
testCase(SerializerTests.__allTests__SerializerTests), | ||
testCase(StressTests.__allTests__StressTests), | ||
testCase(UtilityTests.__allTests__UtilityTests), | ||
] | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import XCTest | ||
@testable import CSVTests | ||
|
||
XCTMain([ | ||
testCase(CSVTests.allTests), | ||
]) | ||
import CSVTests | ||
|
||
var tests = [XCTestCaseEntry]() | ||
tests += CSVTests.__allTests() | ||
|
||
XCTMain(tests) |