Added a tests against backslashes in default_path
This commit is contained in:
parent
958968a852
commit
2a7391c05e
3 changed files with 12 additions and 0 deletions
|
|
@ -316,3 +316,11 @@ TEST_CASE("[Files] wrong (overlapping) replacement for defines")
|
|||
REQUIRE( synth.getRegionView(2)->amplitudeCC->first == 10 );
|
||||
REQUIRE( synth.getRegionView(2)->amplitudeCC->second == 34.0f );
|
||||
}
|
||||
|
||||
TEST_CASE("[Files] Specific bug: relative path with backslashes")
|
||||
{
|
||||
sfz::Synth synth;
|
||||
synth.loadSfzFile(fs::current_path() / "tests/TestFiles/SpecificBugs/win_backslashes.sfz");
|
||||
REQUIRE(synth.getNumRegions() == 1);
|
||||
REQUIRE(synth.getRegionView(0)->sample == R"(closedhat.wav)");
|
||||
}
|
||||
|
|
|
|||
BIN
tests/TestFiles/SpecificBugs/Xylo/Subfolder/closedhat.wav
Executable file
BIN
tests/TestFiles/SpecificBugs/Xylo/Subfolder/closedhat.wav
Executable file
Binary file not shown.
4
tests/TestFiles/SpecificBugs/win_backslashes.sfz
Normal file
4
tests/TestFiles/SpecificBugs/win_backslashes.sfz
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<control>
|
||||
default_path=Xylo\Subfolder\
|
||||
|
||||
<region> sample=closedhat.wav
|
||||
Loading…
Add table
Reference in a new issue