Added a test for empty files
This commit is contained in:
parent
d887f61723
commit
dbad2995c5
1 changed files with 9 additions and 0 deletions
|
|
@ -496,3 +496,12 @@ TEST_CASE("[Files] Case sentitiveness")
|
|||
REQUIRE(synth.getRegionView(3)->sample == "Regions/dummy.wav");
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_CASE("[Files] Empty file")
|
||||
{
|
||||
sfz::Synth synth;
|
||||
REQUIRE(!synth.loadSfzFile(""));
|
||||
REQUIRE(synth.getIncludedFiles().empty());
|
||||
REQUIRE(!synth.loadSfzFile({}));
|
||||
REQUIRE(synth.getIncludedFiles().empty());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue