From 05b4ceec56b94760f6b5f965d66e9aa08bd25f7d Mon Sep 17 00:00:00 2001 From: fdai6499 Date: Thu, 9 Feb 2023 20:44:38 +0100 Subject: [PATCH] refactor: test_history() change --- src/test/java/MainFrameTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/MainFrameTest.java b/src/test/java/MainFrameTest.java index 220f606..bbfee1d 100644 --- a/src/test/java/MainFrameTest.java +++ b/src/test/java/MainFrameTest.java @@ -20,7 +20,7 @@ public class MainFrameTest { GameField gameField = mainFrame.getGameField(); gameField.setValue(5, 5, 5); mainFrame.saveCurrentGameFieldStateToHistory(); - int field = mainFrame.getHistory().getFirst().getField(5, 5); + int field = mainFrame.getHistory().getLast().getField(5, 5); assertEquals(5, field); }