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.

62 lines
1.1 KiB

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "showGeneralInfoEmployee.c"
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. //eN : employeeName pwd: password
  11. void test1_showGeneralInfoEmployee(void)
  12. {
  13. char eN[] = "Atharva";
  14. char pwd[] = "Atharva";
  15. int erg = checkUser(eN, pwd);
  16. TEST_ASSERT_EQUAL_INT(1, erg);
  17. }
  18. void test2_showGeneralInfoEmployee(void)
  19. {
  20. char eN[] = "Can";
  21. char pwd[] = "BlooMask";
  22. int erg = checkUser(eN, pwd);
  23. TEST_ASSERT_EQUAL_INT(2, erg);
  24. }
  25. void test3_showGeneralInfoEmployee(void)
  26. {
  27. char eN[] = "Haytham";
  28. char pwd[] = "TimoDL";
  29. int erg = checkUser(eN, pwd);
  30. TEST_ASSERT_EQUAL_INT(3, erg);
  31. }
  32. void test4_showGeneralInfoEmployee(void)
  33. {
  34. char eN[] = "Julius";
  35. char pwd[] = "Insertcat";
  36. int erg = checkUser(eN, pwd);
  37. TEST_ASSERT_EQUAL_INT(4, erg);
  38. }
  39. void test5_showGeneralInfoEmployee(void)
  40. {
  41. char eN[] = "Mohamed";
  42. char pwd[] = "MD";
  43. int erg = checkUser(eN, pwd);
  44. TEST_ASSERT_EQUAL_INT(5, erg);
  45. }
  46. void test6_showGeneralInfoEmployee(void)
  47. {
  48. char eN[] = "Shivam";
  49. char pwd[] = "Schivam007";
  50. int erg = checkUser(eN, pwd);
  51. TEST_ASSERT_EQUAL_INT(6, erg);
  52. }
  53. #endif // TEST