mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05:59 -04:00
Fix optional test
This commit is contained in:
parent
e5459845ad
commit
5f01e6c557
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build .
|
run: cmake --build .
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ctest -V || true # TODO: debug failing live_mixer test
|
run: ctest -V
|
||||||
- name: Install
|
- name: Install
|
||||||
run: cmake --install .
|
run: cmake --install .
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@ BEGIN_TEST(int, char*[])
|
|||||||
|
|
||||||
// accessing disengaged fails
|
// accessing disengaged fails
|
||||||
EXPECT_EXCEPTION(i = o.value(), BadOptionalAccess);
|
EXPECT_EXCEPTION(i = o.value(), BadOptionalAccess);
|
||||||
EXPECT_EXCEPTION(i = o.value(), std::logic_error);
|
|
||||||
|
|
||||||
// value_or test
|
// value_or test
|
||||||
EXPECT_EQUAL(i = o.value_or(234), 234);
|
EXPECT_EQUAL(i = o.value_or(234), 234);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user