From e7da9ff1087cc78bbe541914a1ddba57541f0c47 Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Thu, 1 Feb 2024 23:28:12 +0100 Subject: [PATCH] added test for coprime numbers --- test/ggT/test_ggT.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/ggT/test_ggT.c b/test/ggT/test_ggT.c index 8fabac0..5730eac 100644 --- a/test/ggT/test_ggT.c +++ b/test/ggT/test_ggT.c @@ -52,6 +52,19 @@ void test_ggTOfBoth0(){ //act int result = ggT(a,b); + //assert + TEST_ASSERT_EQUAL_INT(expected,result); +} + +void test_ggTOfCoprimes(){ + //arrange + int a = 13; + int b = 27; + int expected = 1; + + //act + int result = ggT(a,b); + //assert TEST_ASSERT_EQUAL_INT(expected,result); } \ No newline at end of file