Skip to content

Commit

Permalink
Update touch_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Jul 6, 2020
1 parent bfd4f32 commit ee022dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unittests/touch_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ TEST_CASE("touch::num_devices", "[Touch]")
CHECK(num_devices() == SDL_GetNumTouchDevices());
}

#ifndef TRAVIS_TEST

TEST_CASE("touch::get_device", "[Touch]")
{
const auto device = get_device(0);
CHECK(!device.has_value());
}

#ifndef TRAVIS_TEST
#endif // TRAVIS_TEST

TEST_CASE("touch::type_of", "[Touch]")
{
Expand Down Expand Up @@ -69,5 +71,3 @@ TEST_CASE("touch::mouse_touch_id", "[Touch]")
CHECK(mouse_touch_id() == SDL_MOUSE_TOUCHID);
CHECK(mouse_touch_id() != SDL_TOUCH_MOUSEID);
}

#endif // TRAVIS_TEST

0 comments on commit ee022dc

Please sign in to comment.