This repository has been archived on 2021-04-17. You can view files and clone it, but cannot push or open issues or pull requests.
2020-07-10 16:03:26 +00:00
|
|
|
#include "../include/uirc.h"
|
2020-09-01 09:49:37 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2020-07-10 16:03:26 +00:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
char mesg[513] = {0};
|
|
|
|
IRC_Tags input = {
|
|
|
|
.time = {.value = "now", .clientbound = true},
|
|
|
|
.msgid = {.value = "", .clientbound = false}};
|
|
|
|
int res = 0;
|
2020-07-20 21:40:35 +00:00
|
|
|
if ((res = Assm_tags(mesg, &input, 512)) <= 0) {
|
2020-07-10 16:03:26 +00:00
|
|
|
printf("String could not be assembled. %i\n", res);
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
}
|
|
|
|
if (strcmp(mesg, "@+time=now;msgid") && strcmp(mesg, "@msgid;+time=now")) {
|
|
|
|
printf("String was not assembled properly. Have %s\n", mesg);
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|