mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-17 22:46:51 +01:00
Magical NSFetchedResultsController bugfix....
This commit is contained in:
@@ -97,13 +97,13 @@ class BaseTestCase: XCTestCase {
|
||||
@nonobjc
|
||||
func checkExpectationsImmediately() {
|
||||
|
||||
self.waitForExpectations(timeout: 0, handler: nil)
|
||||
self.waitForExpectations(timeout: 0, handler: { _ in })
|
||||
}
|
||||
|
||||
@nonobjc
|
||||
func waitAndCheckExpectations() {
|
||||
|
||||
self.waitForExpectations(timeout: 10, handler: nil)
|
||||
self.waitForExpectations(timeout: 10, handler: {_ in })
|
||||
}
|
||||
|
||||
// MARK: XCTestCase
|
||||
|
||||
@@ -1170,7 +1170,7 @@ class QueryTests: BaseTestDataTestCase {
|
||||
]
|
||||
do {
|
||||
|
||||
let values: [NSDictionary]? = stack.queryAttributes(
|
||||
let values = stack.queryAttributes(
|
||||
from,
|
||||
Select(
|
||||
"testBoolean",
|
||||
@@ -1185,7 +1185,7 @@ class QueryTests: BaseTestDataTestCase {
|
||||
)
|
||||
XCTAssertNotNil(values)
|
||||
XCTAssertEqual(
|
||||
values!,
|
||||
values as Any as! [NSDictionary],
|
||||
[
|
||||
[
|
||||
"testBoolean": NSNumber(value: false),
|
||||
@@ -1221,7 +1221,7 @@ class QueryTests: BaseTestDataTestCase {
|
||||
let queryClauses: [QueryClause] = []
|
||||
do {
|
||||
|
||||
let values: [NSDictionary]? = stack.queryAttributes(
|
||||
let values = stack.queryAttributes(
|
||||
from,
|
||||
Select(
|
||||
.sum("testBoolean"),
|
||||
@@ -1234,7 +1234,7 @@ class QueryTests: BaseTestDataTestCase {
|
||||
)
|
||||
XCTAssertNotNil(values)
|
||||
XCTAssertEqual(
|
||||
values!,
|
||||
values as Any as! [NSDictionary],
|
||||
[
|
||||
[
|
||||
"sum(testBoolean)": 3,
|
||||
@@ -1248,7 +1248,7 @@ class QueryTests: BaseTestDataTestCase {
|
||||
}
|
||||
do {
|
||||
|
||||
let values: [NSDictionary]? = stack.queryAttributes(
|
||||
let values = stack.queryAttributes(
|
||||
from,
|
||||
Select(
|
||||
.sum("testBoolean", as: "testSum"),
|
||||
@@ -1261,7 +1261,7 @@ class QueryTests: BaseTestDataTestCase {
|
||||
)
|
||||
XCTAssertNotNil(values)
|
||||
XCTAssertEqual(
|
||||
values!,
|
||||
values as Any as! [NSDictionary],
|
||||
[
|
||||
[
|
||||
"testSum": 3,
|
||||
|
||||
Reference in New Issue
Block a user