Skip to content

Commit

Permalink
adding unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolm committed Feb 23, 2024
1 parent 1fdd5c1 commit 9e0d6b4
Show file tree
Hide file tree
Showing 5 changed files with 1,293 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.25)

set(CMAKE_OSX_ARCHITECTURES arm64;x86_64)

project(arithmetic_codec_unit_tests)

add_executable(test test.c arithmetic_codec.c)

if(MSVC)
target_compile_options(test PRIVATE /W4 /WX /std:c17)
else()
target_compile_options(test PRIVATE -Wall -Wextra -Wpedantic -Werror -mavx2 -mfma)
endif()
3 changes: 3 additions & 0 deletions tests/arithmetic_codec.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

#define __ARITHMETIC_CODEC__IMPLEMENTATION__
#include "../arithmetic_codec.h"
Loading

0 comments on commit 9e0d6b4

Please sign in to comment.