all approval tests running with the java approval test framework

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

No files matched your search

@@ -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) {
}
@@ -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);