-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
31 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
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,28 @@ | ||
// | ||
// IntTests.swift | ||
// JSONHelper | ||
// | ||
// Created by Baris Sencan on 6/29/15. | ||
// Copyright (c) 2015 Baris Sencan. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import XCTest | ||
import JSONHelper | ||
|
||
class IntTests: XCTestCase { | ||
let testInt = 1 | ||
let testString = "1" | ||
|
||
func testIntToIntConversion() { | ||
var value: Int? | ||
value <-- (testInt as Any) | ||
XCTAssertEqual(value!, testInt, "Int to Int conversion failed") | ||
} | ||
|
||
func testStringToIntConversion() { | ||
var value: Int? | ||
value <-- (testString as Any) | ||
XCTAssertEqual(value!, testInt, "String to Int conversion failed") | ||
} | ||
} |
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