From 9c965ca24db52daaf1e73a207b3d0e4240ec3f27 Mon Sep 17 00:00:00 2001
From: fdai6040 <daniia.kudasheva@informatik.hs-fulda.de>
Date: Thu, 2 Feb 2023 10:08:48 +0100
Subject: [PATCH] Test ggT-Funktion

---
 src/test/java/src/TasksFrameTest.java | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/test/java/src/TasksFrameTest.java b/src/test/java/src/TasksFrameTest.java
index 96efb8a..b9a277f 100644
--- a/src/test/java/src/TasksFrameTest.java
+++ b/src/test/java/src/TasksFrameTest.java
@@ -58,6 +58,17 @@ class TasksFrameTest {
         int c = tasksFrame.ePhi(35);
         assertEquals(24, c);
     }
+
+    @Test
+    void test_ggt(){
+        TasksFrame tasksFrame = new TasksFrame();
+        int ggt1 = tasksFrame.ggt(4, 20);
+        assertEquals(4, ggt1);
+        int ggt2 = tasksFrame.ggt(205, 120);
+        assertEquals(5, ggt2);
+        int ggt3 = tasksFrame.ggt(262, 599);
+        assertEquals(1, ggt3);
+    }
     }