Skip to content

Commit 5c64da8

Browse files
committed
Added some simple tests
1 parent dd417aa commit 5c64da8

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

Iatheto.xcodeproj/project.pbxproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
F3591FC51C86077500DD13F5 /* Iatheto.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3591FBA1C86077500DD13F5 /* Iatheto.framework */; };
1212
F3591FE31C8608D900DD13F5 /* Iatheto.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3591FD91C8608D900DD13F5 /* Iatheto.framework */; };
1313
F3591FF01C8609BC00DD13F5 /* Iatheto.h in Headers */ = {isa = PBXBuildFile; fileRef = F3591FBD1C86077500DD13F5 /* Iatheto.h */; settings = {ATTRIBUTES = (Public, ); }; };
14+
F36CA194211D5CCC003EAA16 /* IathetoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F36CA193211D5CCC003EAA16 /* IathetoTests.swift */; };
15+
F36CA195211D5CCC003EAA16 /* IathetoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F36CA193211D5CCC003EAA16 /* IathetoTests.swift */; };
1416
F3707E7F210B0B3000ACD532 /* Decimal.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3707E7E210B0B3000ACD532 /* Decimal.swift */; };
1517
F3707E80210B0B3000ACD532 /* Decimal.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3707E7E210B0B3000ACD532 /* Decimal.swift */; };
1618
F38A6707208AF98800C2D7B9 /* JSON.swift in Sources */ = {isa = PBXBuildFile; fileRef = F38A6706208AF98800C2D7B9 /* JSON.swift */; };
@@ -58,6 +60,7 @@
5860
F3591FCB1C86077500DD13F5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5961
F3591FD91C8608D900DD13F5 /* Iatheto.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Iatheto.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6062
F3591FE21C8608D900DD13F5 /* IathetoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IathetoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
63+
F36CA193211D5CCC003EAA16 /* IathetoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IathetoTests.swift; sourceTree = "<group>"; };
6164
F3707E7E210B0B3000ACD532 /* Decimal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Decimal.swift; sourceTree = "<group>"; };
6265
F38A6706208AF98800C2D7B9 /* JSON.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JSON.swift; sourceTree = "<group>"; };
6366
F38CAD73208C479D00E71E90 /* DecodingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DecodingTests.swift; sourceTree = "<group>"; };
@@ -143,10 +146,11 @@
143146
F3591FC81C86077500DD13F5 /* IathetoTests */ = {
144147
isa = PBXGroup;
145148
children = (
149+
F3E533C8208CE272007AE374 /* json.json */,
146150
F3591FCB1C86077500DD13F5 /* Info.plist */,
147151
F38CAD73208C479D00E71E90 /* DecodingTests.swift */,
148152
F38CAD76208C491000E71E90 /* EncodingTests.swift */,
149-
F3E533C8208CE272007AE374 /* json.json */,
153+
F36CA193211D5CCC003EAA16 /* IathetoTests.swift */,
150154
);
151155
path = IathetoTests;
152156
sourceTree = "<group>";
@@ -347,6 +351,7 @@
347351
buildActionMask = 2147483647;
348352
files = (
349353
F38CAD77208C491000E71E90 /* EncodingTests.swift in Sources */,
354+
F36CA194211D5CCC003EAA16 /* IathetoTests.swift in Sources */,
350355
F38CAD74208C479D00E71E90 /* DecodingTests.swift in Sources */,
351356
);
352357
runOnlyForDeploymentPostprocessing = 0;
@@ -370,6 +375,7 @@
370375
buildActionMask = 2147483647;
371376
files = (
372377
F38CAD78208C491000E71E90 /* EncodingTests.swift in Sources */,
378+
F36CA195211D5CCC003EAA16 /* IathetoTests.swift in Sources */,
373379
F38CAD75208C479D00E71E90 /* DecodingTests.swift in Sources */,
374380
);
375381
runOnlyForDeploymentPostprocessing = 0;

IathetoTests/IathetoTests.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// IathetoTests.swift
3+
// Iatheto
4+
//
5+
// Created by Gregory Higley on 8/10/18.
6+
// Copyright © 2018 Gregory Higley. All rights reserved.
7+
//
8+
9+
import XCTest
10+
@testable import Iatheto
11+
12+
class IathetoTests: XCTestCase {
13+
14+
func testEquality() {
15+
let json1: JSON = 3.44
16+
let json2: JSON = 3.44
17+
XCTAssertEqual(json1, json2)
18+
}
19+
20+
}

0 commit comments

Comments
 (0)