renamed WRITE_MESSAGE to WRITE_MESSAGE_1
This commit is contained in:
parent
0a0eb94a83
commit
1fb64603bb
@ -25,7 +25,7 @@ const enum RETURN_CODES //exit codes you fucking idiot (2#)
|
|||||||
INVALID_FILE = -1 //THIS WILL HAPPEN IF YOU USE TOO MUCH LOGS lol
|
INVALID_FILE = -1 //THIS WILL HAPPEN IF YOU USE TOO MUCH LOGS lol
|
||||||
};
|
};
|
||||||
|
|
||||||
#define WRITE_MESSAGE "Hello from logger-test! 👋"
|
#define WRITE_MESSAGE_1 "Hello from logger-test! 👋"
|
||||||
#define WRITE_DIR "./logs"
|
#define WRITE_DIR "./logs"
|
||||||
#define LOG_LATEST "latest.log"
|
#define LOG_LATEST "latest.log"
|
||||||
|
|
||||||
|
@ -42,12 +42,12 @@ int main(void)
|
|||||||
//SET FLAGS
|
//SET FLAGS
|
||||||
setLogFlags(flags);
|
setLogFlags(flags);
|
||||||
|
|
||||||
writeLog(logger.file, WRITE_MESSAGE); //WRITE
|
writeLog(logger.file, WRITE_MESSAGE_1); //WRITE
|
||||||
|
|
||||||
decrypted = decryptLogger(logger); //DECRYPT
|
decrypted = decryptLogger(logger); //DECRYPT
|
||||||
|
|
||||||
//COMPARE OUTPUT
|
//COMPARE OUTPUT
|
||||||
if (strcmp(decrypted[0], WRITE_MESSAGE) == 0) //SUCCESS
|
if (strcmp(decrypted[0], WRITE_MESSAGE_1) == 0) //SUCCESS
|
||||||
{
|
{
|
||||||
printf("TEST SUCCESSFUL!\n");
|
printf("TEST SUCCESSFUL!\n");
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user