<commit_before>################################################################################
#
# Aquila unit tests.
#
################################################################################

include_directories("${CMAKE_SOURCE_DIR}")

# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
    "${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)

# UnitTest++
set(Aquila_Test_SOURCES
    main.cpp
    functions.cpp
    filter/MelFilter.cpp
    filter/MelFilterBank.cpp
    ml/Dtw.cpp
    source/Frame.cpp
    source/FramesCollection.cpp
    source/PlainTextFile.cpp
    source/RawPcmFile.cpp
    source/SignalSource.cpp
    source/WaveFile.cpp
    source/generator/SineGenerator.cpp
    source/generator/SquareGenerator.cpp
    source/generator/TriangleGenerator.cpp
    source/window/BarlettWindow.cpp
    source/window/HammingWindow.cpp
    source/window/RectangularWindow.cpp
    transform/AquilaFft.cpp
    transform/Dft.cpp
    transform/Fft.h
    transform/Fft.cpp
    transform/OouraFft.cpp
    transform/Dct.cpp
)

include_directories(${UNITTESTPP_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_executable(aquila_test EXCLUDE_FROM_ALL ${Aquila_Test_SOURCES})
target_link_libraries(aquila_test Aquila UnitTest++)
add_test(Aquila_TEST_SUITE aquila_test)<commit_msg>Add Gaussian window test to the suite.<commit_after>################################################################################
#
# Aquila unit tests.
#
################################################################################

include_directories("${CMAKE_SOURCE_DIR}")

# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
    "${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)

# UnitTest++
set(Aquila_Test_SOURCES
    main.cpp
    functions.cpp
    filter/MelFilter.cpp
    filter/MelFilterBank.cpp
    ml/Dtw.cpp
    source/Frame.cpp
    source/FramesCollection.cpp
    source/PlainTextFile.cpp
    source/RawPcmFile.cpp
    source/SignalSource.cpp
    source/WaveFile.cpp
    source/generator/SineGenerator.cpp
    source/generator/SquareGenerator.cpp
    source/generator/TriangleGenerator.cpp
    source/window/BarlettWindow.cpp
    source/window/GaussianWindow.cpp
    source/window/HammingWindow.cpp
    source/window/RectangularWindow.cpp
    transform/AquilaFft.cpp
    transform/Dft.cpp
    transform/Fft.h
    transform/Fft.cpp
    transform/OouraFft.cpp
    transform/Dct.cpp
)

include_directories(${UNITTESTPP_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_executable(aquila_test EXCLUDE_FROM_ALL ${Aquila_Test_SOURCES})
target_link_libraries(aquila_test Aquila UnitTest++)
add_test(Aquila_TEST_SUITE aquila_test)
{'fraction_non_alphanumeric': 0.19771591720199858, 'fraction_numerical': 0.0, 'mean_word_length': 5.228888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2931523', 'n_tokens_mistral': 910, 'n_tokens_neox': 877, 'n_words': 108}