-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.c
35 lines (32 loc) · 800 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "assert.h"
#include <stdio.h>
module(array)
{
suite("Array")
{
test("Array equality check")
{
int arr1[] = {1, 2, 3, 4, 5};
int arr2[] = {1, 2, 3, 4, 5};
expect_array_int(arr1, 5) to be equal(arr2);
} end
test("Array above or equal check")
{
int arr1[] = {2, 3, 4, 5, 6};
int arr2[] = {1, 3, 3, 5, 5};
expect_array_int(arr1, 5) to be above_or_equal(arr2);
} end
/* » */
test("Array int » below or equal check")
{
int arr1[] = {2, 3, 4, 5, 6};
int arr2[] = {1, 3, 3, 5, 5};
expect_array_int(arr2, 5) to be below_or_equal(arr1);
} end
} end
}
int main()
{
run(array);
return 0;
}