Skip to content

Commit

Permalink
Fixes some test conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed Jun 26, 2024
1 parent c95f728 commit f64fbcf
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/embedded/test_paj7620u2/paj7620u2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ TEST_P(TestPAJ7620U2, Cursor) {
unit->update();
EXPECT_EQ(unit->brightness(), 0);
EXPECT_FALSE(unit->approach());
EXPECT_NE(unit->cursorX(), 0xFFFF);
EXPECT_NE(unit->cursorY(), 0xFFFF);
}

TEST_P(TestPAJ7620U2, Other) {
bool flip{}, flip2{};

EXPECT_TRUE(unit->getHorizontalFlip(flip));
EXPECT_TRUE(unit->setHorizontalFlip(!flip));
EXPECT_TRUE(unit->getHorizontalFlip(flip2));
EXPECT_NE(flip, flip2);

EXPECT_TRUE(unit->getVerticalFlip(flip));
EXPECT_TRUE(unit->setVerticalFlip(!flip));
EXPECT_TRUE(unit->getVerticalFlip(flip2));
EXPECT_NE(flip, flip2);
}

0 comments on commit f64fbcf

Please sign in to comment.