Added a price filter so that users can filter posts by a price range.
Changes Made
Users can put in a lower bound and upper bound for their price range. Then, they can view all of the posts that are within that price range.
Test Coverage
I tested the feature through manual testing and unit testing. I used the same logic for both forms of testing. First, I tested a case that the price of a post is strictly between the lower bound and the upper bound. Next, I tested the two cases where the price is exactly equal to the lower bound and upper bound. Lastly, I tested the case where the price is not within the price range.
Overview
Added a price filter so that users can filter posts by a price range.
Changes Made
Users can put in a lower bound and upper bound for their price range. Then, they can view all of the posts that are within that price range.
Test Coverage
I tested the feature through manual testing and unit testing. I used the same logic for both forms of testing. First, I tested a case that the price of a post is strictly between the lower bound and the upper bound. Next, I tested the two cases where the price is exactly equal to the lower bound and upper bound. Lastly, I tested the case where the price is not within the price range.