<commit_before>package com.gildedrose;

import static org.junit.Assert.*;

import org.junit.Test;

public class GildedRoseTest {

    @Test
    public void foo() {
        Item[] items = new Item[] { new Item("foo", 0, 0) };
        GildedRose app = new GildedRose(items);
        app.updateQuality();
        assertEquals(true, true);
    }

}<commit_msg>Added more coverage<commit_after>package com.gildedrose;

import static org.junit.Assert.*;

import org.junit.Test;

public class GildedRoseTest {

    @Test
    public void it_must_reduce_quality_by_one_for_a_normal_item() {
        Item[] items = new Item[] { new Item("Normal Item", 1, 1) };
        GildedRose gildedRose = new GildedRose(items);
        gildedRose.updateQuality();
        assertEquals(items[0].quality, 0);
    }

    @Test
    public void it_must_increase_quality_by_1_for_an_aged_brie() {
        Item[] items = new Item[] { new Item("Aged Brie", 1, 1) };
        GildedRose gildedRose = new GildedRose(items);
        gildedRose.updateQuality();
        assertEquals(items[0].quality, 2);
    }

    @Test
    public void it_must_reduce_quality_by_2_for_a_normal_item_if_is_expired() {
        Item[] items = new Item[] { new Item("Normal Item", -1, 2) };
        GildedRose gildedRose = new GildedRose(items);
        gildedRose.updateQuality();
        assertEquals(items[0].quality, 0);
    }

    @Test
    public void it_must_increase_quality_by_2_for_an_aged_brie_that_is_expired() {
        Item[] items = new Item[] { new Item("Aged Brie", -1, 1) };
        GildedRose gildedRose = new GildedRose(items);
        gildedRose.updateQuality();
        assertEquals(items[0].quality, 3);
    }

    @Test
    public void it_must_set_quality_to_0_for_a_backstage_that_is_expired() {
        Item[] items = new Item[] { new Item("Backstage passes to a TAFKAL80ETC concert", -1, 50) };
        GildedRose gildedRose = new GildedRose(items);
        gildedRose.updateQuality();
        assertEquals(items[0].quality, 0);
    }

    
}
{'fraction_non_alphanumeric': 0.11612903225806452, 'fraction_numerical': 0.014392059553349877, 'mean_word_length': 3.0892494929006085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3506028', 'n_tokens_mistral': 732, 'n_tokens_neox': 675, 'n_words': 145}