Skip to content
Snippets Groups Projects
Commit 5cd397c1 authored by LittleTux89's avatar LittleTux89 Committed by Kurotych Anatolii
Browse files

Finished the test (#17)

Add dap common test
parent 9e62419f
No related branches found
No related tags found
No related merge requests found
#include "dap_common_test.h"
void test_put_int() {
const int INT_VAL = 10;
const char * EXPECTED_RESULT = "10";
char * result_arr = itoa(INT_VAL);
assert(strcmp(result_arr, EXPECTED_RESULT) == 0 && "test_put_int failed");
}
void dap_common_test_run() {
printf("Start running dap_common_test\n");
test_put_int();
}
#pragma once
#include "dap_common.h"
#include "assert.h"
#include "stdbool.h"
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
extern void dap_common_test_run(void);
#include "dap_config_test.h"
#include "dap_common_test.h"
#include "dap_common.h"
int main(void) {
// switch off debug info from library
set_log_level(L_CRITICAL);
dap_config_tests_run();
dap_common_test_run();
}
#pragma once
#include "dap_config_test.h"
#include "dap_common_test.h"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment