refactor(test): remove relative include
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
#include <assert.h>
|
||||
#include <myclib/myhashmap.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../../hashmap/myhashmap.h"
|
||||
|
||||
#define MAX_STR_LEN 64
|
||||
|
||||
/* My custom data type stored as value */
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include "../../queue/myqueue.h"
|
||||
#include <myclib/myqueue.h>
|
||||
|
||||
void test_queue1(void) {
|
||||
/* Allocate a new queue */
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include <myclib/mysocket.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../../socket/mysocket.h"
|
||||
|
||||
void test_socket1(void) {
|
||||
sock_platform_init();
|
||||
struct addrinfo hints, *res, *p;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include <assert.h>
|
||||
#include <myclib/mystack.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../../stack/mystack.h"
|
||||
|
||||
void test_stack1(void) {
|
||||
stack_s *stack = stack_new(32, sizeof(int));
|
||||
int num = 10;
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#include <assert.h>
|
||||
#include <myclib/mystring.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../../string/mystring.h"
|
||||
|
||||
void test_str1(void) {
|
||||
size_t length;
|
||||
size_t capacity;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include <assert.h>
|
||||
#include <myclib/mystring.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../../string/mystring.h"
|
||||
|
||||
void test_str2(void) {
|
||||
string_s *s1 = string_new("Hello, world!", 0);
|
||||
assert(s1 != NULL);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include <assert.h>
|
||||
#include <myclib/mystring.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../../string/mystring.h"
|
||||
|
||||
void test_str3(void) {
|
||||
/* Make a new string from format */
|
||||
string_s *s = string_format("My name is %s (%d)", "John", 21);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include <assert.h>
|
||||
#include <myclib/myvector.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../../vector/myvector.h"
|
||||
|
||||
typedef struct my_elem {
|
||||
char name[32];
|
||||
int age;
|
||||
|
||||
Reference in New Issue
Block a user