# Splitting money into parts, tested two ways: a table of hand-worked
# cases, and properties checked on thousands of generated inputs from a
# fixed seed, with a small shrinker that reduces a failing input.
add_library(tst_split STATIC split.cpp)
target_include_directories(tst_split PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

lld_add_example(tst_split_demo SOURCES main.cpp EXPECTED_OUTPUT expected_output.txt)
target_link_libraries(tst_split_demo PRIVATE tst_split)

lld_add_test(tst_split_table_tests SOURCES tests/test_split_table.cpp LABELS unit)
target_link_libraries(tst_split_table_tests PRIVATE tst_split)

lld_add_test(tst_split_property_tests SOURCES tests/test_split_properties.cpp LABELS property)
target_link_libraries(tst_split_property_tests PRIVATE tst_split)
