aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/un/sorter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/un/sorter.c b/tests/un/sorter.c
index 7d46772..a5e9c1d 100644
--- a/tests/un/sorter.c
+++ b/tests/un/sorter.c
@@ -14,7 +14,7 @@ b32 sort_test_case_string(String *data, String *expect, u64 size) {
return true;
}
-void main() {
+int main() {
un_init(UN_MB(4));
{
s32 data[] = {5, 4, 3, 2, 1};
@@ -81,4 +81,6 @@ void main() {
String expected[] = { UN_STR(" space"), UN_STR("hello"), UN_STR("hello world"), UN_STR("space") };
assert(sort_test_case_string(data, expected, sizeof(data) / sizeof(data[0])));
}
+
+ return 0;
}