mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 06:21:29 +00:00
initial version
This commit is contained in:
parent
c5ea101af9
commit
def3dc3d48
@ -5,11 +5,11 @@ import java.util.stream.IntStream;
|
|||||||
class GildedRose {
|
class GildedRose {
|
||||||
Item[] items;
|
Item[] items;
|
||||||
|
|
||||||
private GildedRose(Item[] items) {
|
GildedRose(Item[] items) {
|
||||||
this.items = items;
|
this.items = items;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateQuality() {
|
void updateQuality() {
|
||||||
IntStream.range(0, items.length).forEach(i -> {
|
IntStream.range(0, items.length).forEach(i -> {
|
||||||
if (!items[i].name.equals("Aged Brie")
|
if (!items[i].name.equals("Aged Brie")
|
||||||
&& !items[i].name.equals("Backstage passes to a TAFKAL80ETC concert")) {
|
&& !items[i].name.equals("Backstage passes to a TAFKAL80ETC concert")) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
package com.gildedrose;
|
package com.gildedrose;
|
||||||
|
|
||||||
public class TexttestFixture {
|
public class TextTestFixture {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("OMGHAI!");
|
System.out.println("OMGHAI!");
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user