fake_cloud_firestore icon indicating copy to clipboard operation
fake_cloud_firestore copied to clipboard

Bug: Regression with OrderBy for v0.3.0 vs 0.2.4

Open SupposedlySam opened this issue 1 year ago • 0 comments

I have a test suite ensuring the values should be returned in a particular order when using a ranged operator on a stream. The correct results are getting returned with v0.2.4 of the package, but as of v0.3.0, the results are returning in the wrong order.

I'm creating a stream where the user's age is greater than 4 and ordering that by both the name, then the age. Here's the test output.

Expected: should emit an event that [
            TestUser:TestUser(Fry, 25, Delivery Boy),
            TestUser:TestUser(Fry, 1025, Delivery Boy),
            TestUser:TestUser(Leela, 25, Pilot)
          ]
  Actual: <Instance of '_MapStream<QuerySnapshot<TestUser?>, List<TestUser>>'>
   Which: emitted • [TestUser(Fry, 25, Delivery Boy), TestUser(Leela, 25, Pilot), TestUser(Fry, 1025, Delivery Boy)]
            which emitted an event that at location [1] is TestUser:<TestUser(Leela, 25, Pilot)> instead of TestUser:<TestUser(Fry, 1025, Delivery Boy)>

Let me know if you need anything else!

SupposedlySam avatar Sep 17 '22 18:09 SupposedlySam