generated from cu-ecen-aeld/aesd-assignments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_validate_username.c
22 lines (21 loc) · 1.03 KB
/
Test_validate_username.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "unity.h"
#include <stdbool.h>
#include <stdlib.h>
#include "../../examples/autotest-validate/autotest-validate.h"
#include "../../assignment-autotest/test/assignment1/username-from-conf-file.h"
/**
* This function should:
* 1) Call the my_username() function in autotest-validate.c to get your hard coded username.
* 2) Obtain the value returned from function malloc_username_from_conf_file() in username-from-conf-file.h within
* the assignment autotest submodule at assignment-autotest/test/assignment1/
* 3) Use unity assertion TEST_ASSERT_EQUAL_STRING_MESSAGE to verify the two strings are equal. See
* the [unity assertion reference](https://github.com/ThrowTheSwitch/Unity/blob/master/docs/UnityAssertionsReference.md)
*/
void test_validate_my_username()
{
/**
* TODO: Replace the line below with your code here as described above to verify your /conf/username.txt
* config file and my_username() functions are setup properly
*/
TEST_ASSERT_TRUE_MESSAGE(false,"AESD students, please fix me!");
}