Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangyongji
/
MRFramework
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
42a6a49b
authored
Oct 09, 2019
by
Sarkizz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加单元测试
parent
634c66b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletions
+53
-1
MRFramework/MRFramework.xcodeproj/project.pbxproj
+5
-1
MRFramework/MRFrameworkTests/CountdownTest.swift
+48
-0
No files found.
MRFramework/MRFramework.xcodeproj/project.pbxproj
View file @
42a6a49b
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
5
0
;
objectVersion
=
5
1
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -27,6 +27,7 @@
A73E5C9D23137F51000C379B
/* MRUpdateManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A73E5C9C23137F51000C379B
/* MRUpdateManager.swift */
;
};
A73E5C9F2314CBC4000C379B
/* Data+crypto.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A73E5C9E2314CBC4000C379B
/* Data+crypto.swift */
;
};
A73E5CA12314CCBC000C379B
/* String+util.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A73E5CA02314CCBC000C379B
/* String+util.swift */
;
};
A787A4AD233DEF98001086B7
/* CountdownTest.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A787A4AC233DEF98001086B7
/* CountdownTest.swift */
;
};
A7B8E127230B9DD500999DF2
/* MRFramework.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A7B8E11D230B9DD500999DF2
/* MRFramework.framework */
;
};
A7B8E12E230B9DD500999DF2
/* MRFramework.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A7B8E120230B9DD500999DF2
/* MRFramework.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
A7B8E13A230B9EE200999DF2
/* Date+util.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A7B8E138230B9EE200999DF2
/* Date+util.swift */
;
};
...
...
@@ -87,6 +88,7 @@
A73E5C9C23137F51000C379B
/* MRUpdateManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MRUpdateManager.swift
;
sourceTree
=
"<group>"
;
};
A73E5C9E2314CBC4000C379B
/* Data+crypto.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"Data+crypto.swift"
;
sourceTree
=
"<group>"
;
};
A73E5CA02314CCBC000C379B
/* String+util.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"String+util.swift"
;
sourceTree
=
"<group>"
;
};
A787A4AC233DEF98001086B7
/* CountdownTest.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CountdownTest.swift
;
sourceTree
=
"<group>"
;
};
A7B8E11D230B9DD500999DF2
/* MRFramework.framework */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.framework
;
includeInIndex
=
0
;
path
=
MRFramework.framework
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
A7B8E120230B9DD500999DF2
/* MRFramework.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
MRFramework.h
;
sourceTree
=
"<group>"
;
};
A7B8E121230B9DD500999DF2
/* Info.plist */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.xml
;
path
=
Info.plist
;
sourceTree
=
"<group>"
;
};
...
...
@@ -256,6 +258,7 @@
A7B8E151230E1DD400999DF2
/* BMW.jpg */
,
A7B8E143230CDB3800999DF2
/* MRFilesTests.swift */
,
A7B8E16F230F8C0000999DF2
/* DeviceInfoTest.swift */
,
A787A4AC233DEF98001086B7
/* CountdownTest.swift */
,
A7B8E12D230B9DD500999DF2
/* Info.plist */
,
);
path
=
MRFrameworkTests
;
...
...
@@ -586,6 +589,7 @@
files
=
(
A7B8E144230CDB3800999DF2
/* MRFilesTests.swift in Sources */
,
A7B8E170230F8C0000999DF2
/* DeviceInfoTest.swift in Sources */
,
A787A4AD233DEF98001086B7
/* CountdownTest.swift in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
...
...
MRFramework/MRFrameworkTests/CountdownTest.swift
0 → 100644
View file @
42a6a49b
//
// CountdownTest.swift
// MRFrameworkTests
//
// Created by Sarkizz on 2019/9/27.
// Copyright © 2019 sarkizz. All rights reserved.
//
import
XCTest
import
MRFramework
class
CountdownTest
:
XCTestCase
{
var
countdown
:
Countdown
!
override
func
setUp
()
{
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override
func
tearDown
()
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func
testExample
()
{
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func
testPerformanceExample
()
{
// This is an example of a performance test case.
self
.
measure
{
// Put the code you want to measure the time of here.
}
}
}
extension
CountdownTest
{
func
testDown
()
{
countdown
=
TimeInterval
(
10
)
.
countdown
{
(
_
,
_
,
_
,
sec
)
in
print
(
sec
)
if
sec
<=
0
{
XCTAssert
(
true
)
}
}
countdown
.
resume
()
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment