diff --git a/tests/test_showGeneralInfoEmployee.c b/tests/test_showGeneralInfoEmployee.c index e666269..468a993 100644 --- a/tests/test_showGeneralInfoEmployee.c +++ b/tests/test_showGeneralInfoEmployee.c @@ -2,7 +2,7 @@ #include "unity.h" -#include "showGeneralInfoEmployee.h" +#include "showGeneralInfoEmployee.c" void setUp(void) { @@ -12,9 +12,51 @@ void tearDown(void) { } -void test_showGeneralInfoEmployee_NeedToImplement(void) +//eN : employeeName pwd: password + +void test1_showGeneralInfoEmployee(void) +{ + char eN[] = "Atharva"; + char pwd[] = "Atharva"; + int erg = checkUser(eN, pwd); + TEST_ASSERT_EQUAL_INT(1, erg); +} +void test2_showGeneralInfoEmployee(void) +{ + char eN[] = "Can"; + char pwd[] = "BlooMask"; + int erg = checkUser(eN, pwd); + TEST_ASSERT_EQUAL_INT(2, erg); +} +void test3_showGeneralInfoEmployee(void) +{ + char eN[] = "Haytham"; + char pwd[] = "TimoDL"; + int erg = checkUser(eN, pwd); + TEST_ASSERT_EQUAL_INT(3, erg); +} +void test4_showGeneralInfoEmployee(void) { - TEST_IGNORE_MESSAGE("Need to Implement showGeneralInfoEmployee"); + char eN[] = "Julius"; + char pwd[] = "Insertcat"; + int erg = checkUser(eN, pwd); + TEST_ASSERT_EQUAL_INT(4, erg); } +void test5_showGeneralInfoEmployee(void) +{ + char eN[] = "Mohamed"; + char pwd[] = "MD"; + int erg = checkUser(eN, pwd); + TEST_ASSERT_EQUAL_INT(5, erg); +} +void test6_showGeneralInfoEmployee(void) +{ + char eN[] = "Shivam"; + char pwd[] = "Schivam007"; + int erg = checkUser(eN, pwd); + TEST_ASSERT_EQUAL_INT(6, erg); +} + + #endif // TEST