thinline 0.1.0

A parser and builder for function-unittests written in comment sections for C-language family.
#include <stdio.h>
#include "../include/header1.h"

/// #TL_TESTCASE(Source1::CheckIfSumWorks)
///     int test_no = 2;
///     #TL_EQ[TL_FCT(no1: test_no, no2: 5) => 7]
///     #TL_EQ[TL_FCT(no1: 5, no2: 2) => 7]
///     EXPECT_EQ(11, test_int_no1(9, 2));
/// #!TL_TESTCASE
int test_int_no1(int no1, int no2) {
    return (no1 + no2);
}

/// #TL_TESTCASE(Source1::TestPtr)
///     int test_no = 2;
///     int test_no2 = 5;
///     #TL_EQ[TL_FCT(no1: &test_no, no2: &test_no2) => 7]
/// #!TL_TESTCASE
int test_ptr(int * no1, int * no2) {
    return (*no1 + *no2);
}

/// #TL_TESTCASE(Source1::EmptyFct)
///     #TL_EQ[TL_FCT() => 7]
///     #TL_NE[TL_FCT() => 4]
/// #!TL_TESTCASE
int test_empty_fct() {
    return 7;
}

/// This function has parameters, yeah
int main(int argc, char* argv[]) {
    test_int_no1(1, 2);
}