Skip to content

Commit

Permalink
swift format
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jun 8, 2021
1 parent 949693e commit a71b479
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/JMESPathTests/MirrorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ final class MirrorTests: XCTestCase {
func testCustomReflectableArray() {
struct TestObject: CustomReflectable {
let a: [Int]
var customMirror: Mirror { return Mirror(reflecting: a) }
var customMirror: Mirror { return Mirror(reflecting: self.a) }
}
let test = TestObject(a: [1,2,3,4])
let test = TestObject(a: [1, 2, 3, 4])
self.testInterpreter("[2]", data: test, result: 3)
}

func testCustomReflectableDictionary() {
struct TestObject: CustomReflectable {
let d: [String: String]
var customMirror: Mirror { return Mirror(reflecting: d) }
var customMirror: Mirror { return Mirror(reflecting: self.d) }
}
let test = TestObject(d: ["test": "one", "test2": "two", "test3": "three"])
self.testInterpreter("test2", data: test, result: "two")
Expand Down

0 comments on commit a71b479

Please sign in to comment.