chore: clean up repo + readme

This commit is contained in:
2024-01-29 14:07:45 +01:00
parent 28bec5ebb8
commit dfee9fe461
122 changed files with 61 additions and 11991 deletions

View File

@@ -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`)");
}
}