all approval tests running with the java approval test framework

This commit is contained in:
Ralf Comtesse 2025-10-01 08:31:06 +02:00
parent 36acc45c3e
commit 9456bfce1f
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
package com.gildedrose
class Item(val name: String, var sellIn: Int, var quality: Int) {
case class Item(val name: String, var sellIn: Int, var quality: Int) {
}

View File

@ -29,8 +29,8 @@ public class GildedRoseApprovalTest {
System.setOut(new PrintStream(fakeoutput));
System.setIn(new ByteArrayInputStream("a\n".getBytes()));
// todo: fix Program
// Program.main();
String[] args = {"30"};
TexttestFixture.main(args);
String output = fakeoutput.toString();
Approvals.verify(output);