Skip to content

Commit

Permalink
Document that @steipete's test has turned moot
Browse files Browse the repository at this point in the history
We don't 100% need to address this now, but we 100% need to remember this in the future.
  • Loading branch information
groue committed Apr 10, 2021
1 parent a5ffc52 commit c34615c
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ class GRDBCombineDemoUITests: XCTestCase {
return app
}

// This test, introduced in 481f6e93, tests the @Query fix added in
// 68874412. The fix expresses itself when a view defines an @Query
// property that is replaced in the view initializer, as in 481f6e93.
//
// It happens that I did not find that this particular view setup was suited
// for a demo app. The demo has to find a delicate balance, not too trivial,
// but without gratuitous complexity.
//
// I simplified the demo app in a5ffc52d, and we no longer have any view
// that defines an @Query property which is replaced in the view
// initializer. This means that this test no longer checks against
// 68874412 regressions!
//
// Whenever the @Query property wrapper ships with GRDB itself, make sure
// we test for those regressions!
func testInitialSortingIsByScore() throws {
let app = runApp()

Expand Down

2 comments on commit c34615c

@steipete
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also dropped Query from my app; can related. Was still fun to play with!

@groue
Copy link
Owner Author

@groue groue commented on c34615c Apr 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All right, thanks for the heads up! This demo app is a strange beast, that exists for both educational and communication purposes (how easy is it to plug this GRDB thing on my SwiftUI app?). It slowly improves! Dave and you helped a lot.

Please sign in to comment.