mirror of
https://github.com/Wessel/c-websocket-server.git
synced 2026-07-23 00:37:34 +02:00
chore: clean up repo + readme
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* test(argp): Unit tests for argument parsing */
|
||||
#include <argp.h>
|
||||
|
||||
#include "../include/libtap.h"
|
||||
@@ -54,4 +55,4 @@ void run_argp_tests(int argc, char* argv[], char* env[]) {
|
||||
ok(args.port == 6060, "Arg `port` is `6060`");
|
||||
ok(args.timeout == 500, "Arg `timeout` is `500`");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* Libtap for tests */
|
||||
#include "../include/libtap.h"
|
||||
|
||||
/* test(json-c): Unit tests for data casting */
|
||||
#include "../include/json.h"
|
||||
#include "../include/macros.h"
|
||||
|
||||
#include "../include/libtap.h"
|
||||
|
||||
void run_json_tests(int argc, char* argv[], char* env[]) {
|
||||
/* Unit test for parsing JSON object*/
|
||||
printf("\033[0;35m--Tests for parsing JSON object--\033[0;0m\n");
|
||||
@@ -16,4 +16,4 @@ void run_json_tests(int argc, char* argv[], char* env[]) {
|
||||
ok(status_code == 0, "`parse_envelope_json` returned `json_string` casted as `Envelope`.");
|
||||
like(envelope.payload.sensorId, "LDR_1", "`envelope.payload.sensorId is the same as `json_string` (`LDR_1`)");
|
||||
like(envelope.payload.sensorData, "55", "`envelope.payload.sensorData is the same as `json_string` (`55`)");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* main.c */
|
||||
/*
|
||||
Project description
|
||||
Runs all test files inside this directory
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Reference in New Issue
Block a user