From 8fcafa7b679a2ac450c2a2ce9cd48079bfcfe380 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 18 Apr 2020 21:26:56 +0200 Subject: [PATCH] Add some checks to test the midnam file --- tests/FilesT.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/FilesT.cpp b/tests/FilesT.cpp index d4ce5568..6a8dac59 100644 --- a/tests/FilesT.cpp +++ b/tests/FilesT.cpp @@ -580,4 +580,9 @@ TEST_CASE("[Files] Labels") REQUIRE( ccLabels[0].second == "Gain" ); REQUIRE( ccLabels[1].first == 2 ); REQUIRE( ccLabels[1].second == "Other" ); + const std::string xmlMidnam = synth.exportMidnam(); + REQUIRE(xmlMidnam.find("") != xmlMidnam.npos); + REQUIRE(xmlMidnam.find("") != xmlMidnam.npos); + REQUIRE(xmlMidnam.find("") != xmlMidnam.npos); + REQUIRE(xmlMidnam.find("") != xmlMidnam.npos); }