You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifdef TEST
#include "unity.h"
#include "showGeneralInfoEmployee.c"
void setUp(void) { }
void tearDown(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) { 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
|