Added more values to Test objects

This commit is contained in:
Zach Eriksen 2021-03-13 12:42:15 -06:00
parent c8d0a4fe57
commit 3313033020
1 changed files with 53 additions and 13 deletions

View File

@ -6,6 +6,38 @@ final class WTVTests: XCTestCase {
case green
}
struct SomeObject {
enum SomeCase {
case what
}
enum SomeStringCase: String {
case what
}
enum WoahCase {
case woah(what: Any)
}
let dictionary = [
SomeCase.what: "🚨", // ++
SomeStringCase.what: "😱" // ++
] as [AnyHashable : String]
let what = "😎" // ++
let woah = WoahCase.woah(
what: {
let what = "🔫"
let dictionary = [
SomeCase.what: "🪦",
SomeStringCase.what: "💩"
] as [AnyHashable : String]
} // ++
)
}
struct Dictionary {
var value = [
"someValue": [
@ -15,7 +47,14 @@ final class WTVTests: XCTestCase {
Color.green: [
2,5,6,7,
["what": "👋"] // ++
[
"what": "👋", // ++
"???": [
"what": "👀", // ++
"-->": SomeObject() // += 6
]
]
]
]
]
@ -24,17 +63,11 @@ final class WTVTests: XCTestCase {
struct Value {
let somes = [
Dictionary(), // += 3
"what": 3.14, // ++
"deeper": Something()
] as [String : Any]
"what",
"the",
"variable",
[
"what": 3.14 // ++
],
Dictionary() // += 3
] as [Any]
let thing = Dictionary()
}
struct RootValue {
@ -45,6 +78,13 @@ final class WTVTests: XCTestCase {
let root = RootValue()
}
struct Something {
let what = "else" // ++
let wow = [
"what": 3.14, // ++
]
}
func testExample() {
guard let output = WTV(OuterValue()).variable(named: "what") else {
XCTFail()
@ -57,6 +97,6 @@ final class WTVTests: XCTestCase {
}
static var allTests = [
("testExample", testExample),
("testExample", testExample)
]
}