PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
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.

unit-tests_Settings.cpp 782B

3 years ago
123456789101112131415161718192021222324
  1. #include "unit-tests_Settings.h"
  2. BEGIN_MIDI_NAMESPACE
  3. const bool DefaultSettings::UseRunningStatus;
  4. const bool DefaultSettings::HandleNullVelocityNoteOnAsNoteOff;
  5. const bool DefaultSettings::Use1ByteParsing;
  6. const unsigned DefaultSettings::SysExMaxSize;
  7. END_MIDI_NAMESPACE
  8. // -----------------------------------------------------------------------------
  9. BEGIN_UNNAMED_NAMESPACE
  10. TEST(Settings, hasTheRightDefaultValues)
  11. {
  12. EXPECT_EQ(midi::DefaultSettings::UseRunningStatus, false);
  13. EXPECT_EQ(midi::DefaultSettings::HandleNullVelocityNoteOnAsNoteOff, true);
  14. EXPECT_EQ(midi::DefaultSettings::Use1ByteParsing, true);
  15. EXPECT_EQ(midi::DefaultSettings::SysExMaxSize, unsigned(128));
  16. }
  17. END_UNNAMED_NAMESPACE