src/test/java/com/gildedrose/GildedRoseTest.java
//Rule #1 : Once the sell by date has passed, Quality degrades twice as fast
Rule #1 : Once the sell by date has passed, Quality degrades twice as fast
Rule #1 : Once the sell by date has passed Quality degrades twice as fast
@Test
    public void sellDatePassed() {
        Item[] items = new Item[] { new Item("Other Item", -1, 10) };
        GildedRose app = new GildedRose(items);
        app.updateQuality();
        assertEquals(app.items[0].quality,8);
    }
@ Test public void sellDatePassed ( ) { Item [ ] items = new Item [ ] { new Item ( "Other Item" , - 1 , 10 ) } ; GildedRose app = new GildedRose ( items ) ; app . updateQuality ( ) ; assertEquals ( app . items [ 0 ] . quality , 8 ) ; }
Rule #1 : Once the sell by date has passed, Quality degrades twice as fast
Rule #1 : Once the sell by date has passed Quality degrades twice as fast