Browse Source

Implement test for file opening with false name

remotes/origin/feature/get-current-customer-account-balance
Shivam Chaudhary 2 years ago
parent
commit
07cbebd4a4
  1. 7
      tests/test_currentCustomerAccountBalance.c

7
tests/test_currentCustomerAccountBalance.c

@ -51,6 +51,13 @@ void test_checkFileOpen(void) {
fclose(file); fclose(file);
} }
void test_failOpenFile(void) {
FILE *file = fopen("false_file_name", "r");
TEST_ASSERT_FALSE(file);
}

Loading…
Cancel
Save