From 3697dee48adc49a756fd06fe5aa76aa4aee82623 Mon Sep 17 00:00:00 2001 From: Raffaello Bertini Date: Tue, 14 Nov 2023 15:06:56 +0000 Subject: [PATCH] code rev --- sdl2-hyper-sonic-drivers/src/std/IDeviceTypesFormatter.hpp | 2 +- .../test/std/IDeviceTypesFormatterTest.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sdl2-hyper-sonic-drivers/src/std/IDeviceTypesFormatter.hpp b/sdl2-hyper-sonic-drivers/src/std/IDeviceTypesFormatter.hpp index 0e354b8d..5b096d60 100644 --- a/sdl2-hyper-sonic-drivers/src/std/IDeviceTypesFormatter.hpp +++ b/sdl2-hyper-sonic-drivers/src/std/IDeviceTypesFormatter.hpp @@ -28,7 +28,7 @@ namespace std str = "SbPro2"; break; case Mt32: - str = "MT32"; + str = "Mt32"; break; } diff --git a/sdl2-hyper-sonic-drivers/test/std/IDeviceTypesFormatterTest.cpp b/sdl2-hyper-sonic-drivers/test/std/IDeviceTypesFormatterTest.cpp index cfc0b437..d973ad67 100644 --- a/sdl2-hyper-sonic-drivers/test/std/IDeviceTypesFormatterTest.cpp +++ b/sdl2-hyper-sonic-drivers/test/std/IDeviceTypesFormatterTest.cpp @@ -6,7 +6,10 @@ namespace std { TEST(IDeviceTypesFormatter, Music) { - ASSERT_STRCASEEQ(std::format("{}", HyperSonicDrivers::devices::eDeviceName::Adlib).c_str(), "Adlib"); + EXPECT_STRCASEEQ(std::format("{}", HyperSonicDrivers::devices::eDeviceName::Adlib).c_str(), "Adlib"); + EXPECT_STRCASEEQ(std::format("{}", HyperSonicDrivers::devices::eDeviceName::Mt32).c_str(), "Mt32"); + EXPECT_STRCASEEQ(std::format("{}", HyperSonicDrivers::devices::eDeviceName::SbPro).c_str(), "SbPro"); + EXPECT_STRCASEEQ(std::format("{}", HyperSonicDrivers::devices::eDeviceName::SbPro2).c_str(), "SbPro2"); } }