1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 21:43:07 +03:00

Test that empty docs have empty layout.

This commit is contained in:
Rob Rix 2015-10-07 11:51:13 -04:00
parent 1d8ceac332
commit 3b8b10a4a2
2 changed files with 14 additions and 0 deletions

View File

@ -50,6 +50,7 @@
D4C2B1441BB347500096F92A /* Doubt.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = D4AAE4FD1B5AE22E004E581F /* Doubt.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
D4D7F3171BBB22E500AAB0C0 /* Hash.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D7F3161BBB22E500AAB0C0 /* Hash.swift */; settings = {ASSET_TAGS = (); }; };
D4DF96ED1BC46B630040F41F /* SES.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DF96EC1BC46B630040F41F /* SES.swift */; settings = {ASSET_TAGS = (); }; };
D4DF96F61BC576720040F41F /* DocTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DF96F51BC576720040F41F /* DocTests.swift */; settings = {ASSET_TAGS = (); }; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -118,6 +119,7 @@
D4D7F3161BBB22E500AAB0C0 /* Hash.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Hash.swift; sourceTree = "<group>"; };
D4DF96EC1BC46B630040F41F /* SES.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SES.swift; sourceTree = "<group>"; };
D4DF96F01BC54C970040F41F /* Doubt.modulemap */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = "sourcecode.module-map"; path = Doubt.modulemap; sourceTree = "<group>"; };
D4DF96F51BC576720040F41F /* DocTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DocTests.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -234,6 +236,7 @@
isa = PBXGroup;
children = (
D432D4701BA9AC0B00F3FABC /* SESTests.swift */,
D4DF96F51BC576720040F41F /* DocTests.swift */,
D4AAE5141B5AE22E004E581F /* Info.plist */,
D40B89C71BC439000078E098 /* Assertions.framework */,
);
@ -414,6 +417,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D4DF96F61BC576720040F41F /* DocTests.swift in Sources */,
D432D4711BA9AC0B00F3FABC /* SESTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;

View File

@ -0,0 +1,10 @@
final class DocTests: XCTestCase {
func testEmptyDocLaysOutToEmptyString() {
assert(Doc.Empty.description, ==, "")
}
}
import Assertions
@testable import Doubt
import XCTest