Improve Test Coverage for GildedRose UpdateQuality Functionality#48
Open
justin-marian wants to merge 3 commits intorosedu:mainfrom
Open
Improve Test Coverage for GildedRose UpdateQuality Functionality#48justin-marian wants to merge 3 commits intorosedu:mainfrom
justin-marian wants to merge 3 commits intorosedu:mainfrom
Conversation
Added extra items to the inventory for testing purposes. This change ensures that all item types (Normal, Aged Brie, Sulfuras, Backstage passes, and Conjured) are present and can be validated by the test suite.
Added test cases to cover all branches of the updateQuality method. The tests now verify that the quality and sellIn values are updated correctly for each item type, ensuring 100% branch coverage.
Added a variety of items to the inventory (including normal items, Aged Brie, Backstage passes, and Conjured items) to ensure comprehensive coverage of the updateQuality functionality. This update helps verify that all branches in the code are exercised and the program behaves correctly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
updateQualitymethod.qualityandsellInare correctly updated, achieving full coverage.