mirror of
https://github.com/Wessel/c-websocket-server.git
synced 2026-07-23 08:47:24 +02:00
chore: clean up repo + readme
This commit is contained in:
@@ -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`)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user