Robot
Move a little robot.
test.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "base64.h"
#include "lib_server.h"
Include dependency graph for test.c:

Functions

void test_base64_case (const char *input, const char *expected)
 Tests one exemple of base64. More...
 
void test_base64 (void)
 Performs base64 implementation tests. More...
 
void test_string (void)
 Performs string structure implementation tests. More...
 
void test_string_snprintf (void)
 Performs string_snprintf() implementation tests. More...
 
void test_parse_client_request (void)
 Performs parse_client_request() implementation tests. More...
 
int main (void)
 Launches unitary tests. More...
 

Function Documentation

◆ main()

int main ( void  )

Launches unitary tests.

◆ test_base64()

void test_base64 ( void  )

Performs base64 implementation tests.

Class test_base64_case(). Exemples are from https://en.wikipedia.org/wiki/Base64.

◆ test_base64_case()

void test_base64_case ( const char *  input,
const char *  expected 
)

Tests one exemple of base64.

Parameters
inputPointer to the input buffer to encode.
expectedPointer to the encoded result for comparison.

◆ test_parse_client_request()

void test_parse_client_request ( void  )

Performs parse_client_request() implementation tests.

◆ test_string()

void test_string ( void  )

Performs string structure implementation tests.

◆ test_string_snprintf()

void test_string_snprintf ( void  )

Performs string_snprintf() implementation tests.