-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuncSpec.swift
More file actions
44 lines (29 loc) · 1.07 KB
/
FuncSpec.swift
File metadata and controls
44 lines (29 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import XCTest
import Quick
import Nimble
@testable import XcodeExtBase
final class TestBaseCMD: NSObject, XCCMDP {}
class FuncSpec: QuickSpec {
override func spec() {
describe("FuncInterface") {
let cmd = TestBaseCMD()
it("can can be parsed") {
let str1 = "" // func print(_ str1: Str?, _ str2: Str?) -> Str?
guard let type1 = cmd.parseFuncInterface(str1) else {
XCTFail()
return
}
//expect(type1.type).to(equal(SwiftType._enum))
///
expect("a").to(equal("a"))
}
it("can can be printed") {
// let str =
//let f = Func(name: <#T##Str#>, args: <#T##[FuncArg]#>, returnType: <#T##TypeDecl?#>, access: <#T##AccessMod?#>)
expect("a").to(equal("a"))
}
}
// describe("FuncDecl") {}
// describe("Func") {
}
}