Add a test for opcode direction
This commit is contained in:
parent
b6a437e4a4
commit
32d7a0aa48
1 changed files with 9 additions and 0 deletions
|
|
@ -23,6 +23,15 @@ TEST_CASE("[Region] Parsing opcodes")
|
|||
REQUIRE(region.sample == "dummy.wav");
|
||||
}
|
||||
|
||||
SECTION("direction")
|
||||
{
|
||||
REQUIRE(!region.sampleId.reverse);
|
||||
region.parseOpcode({ "direction", "reverse" });
|
||||
REQUIRE(region.sampleId.reverse);
|
||||
region.parseOpcode({ "direction", "forward" });
|
||||
REQUIRE(!region.sampleId.reverse);
|
||||
}
|
||||
|
||||
SECTION("delay")
|
||||
{
|
||||
REQUIRE(region.delay == 0.0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue