Studentenversion des ESY6/A Praktikums "signal_processing".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_task_cosine.cc 631B

123456789101112131415161718192021222324
  1. #include <gtest/gtest.h>
  2. #include <cmath>
  3. #include <fstream>
  4. #include "../dataChannelTestUtility.h"
  5. #include "../taskTests.h"
  6. #include "../../../software/signal_processing_bsp/system.h"
  7. #include "../../data/cosine.h"
  8. int main( int argc, char ** argv ) {
  9. ::testing::InitGoogleTest(&argc, argv);
  10. return RUN_ALL_TESTS();
  11. }
  12. TEST( test_task_cosine, execute_only ) {
  13. configureAndRunCosine();
  14. dataChannelWriteToFile( DATA_CHANNEL_1_BASE, "data.py" );
  15. }
  16. TEST( test_task_cosine, execute_and_check ) {
  17. configureAndRunCosine();
  18. dataChannelCheckAndWriteToFile( DATA_CHANNEL_1_BASE, expected_cosine, "data.py" );
  19. }