Skip to content

Commit

Permalink
Improve test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadden committed Jul 11, 2018
1 parent 24b2726 commit 528f39d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unit_tests/id.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ test_single_id(Id const& id)
Id copy;
id.deep_copy(&copy);
test_equal_ids(id, copy);

// Copying a clone is sometimes different because the clone is free of
// references to the surrounding stack frame.
Id clone_copy;
clone->deep_copy(&clone_copy);
test_equal_ids(id, clone_copy);
}

// Test all the ID operations on a pair of different IDs.
Expand Down
1 change: 1 addition & 0 deletions unit_tests/signals/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ TEST_CASE("signal_ref", "[signals]")
REQUIRE(signal_can_write<signal_t>::value);

REQUIRE(signal_is_readable(s));
REQUIRE(s.value_id() == y.value_id());
REQUIRE(read_signal(s) == 1);
REQUIRE(signal_is_writable(s));
write_signal(s, 0);
Expand Down

0 comments on commit 528f39d

Please sign in to comment.