aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-02-25 11:20:35 +0000
committerMark Haines <mjark@negativecurvature.net>2015-02-25 11:20:35 +0000
commit5f9cc65589e71a47e0a06b2dd6fb39540eaaf9e5 (patch)
tree2de4aff704ecaaad2a7d461a42aae26aa0b4853a
parentba446e7a125381d8d992fba2011f16f7f6e2806a (diff)
const correctness
-rw-r--r--tests/include/unittest.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/include/unittest.hh b/tests/include/unittest.hh
index 65ccc34..1ba64df 100644
--- a/tests/include/unittest.hh
+++ b/tests/include/unittest.hh
@@ -22,8 +22,8 @@ char const * TEST_CASE;
template<typename T>
void assert_equals(
- const T & expected,
- const T & actual
+ T const & expected,
+ T const & actual
) {
if (expected != actual) {
std::cout << "FAILED: " << TEST_CASE << std::endl;
@@ -35,8 +35,8 @@ void assert_equals(
void assert_equals(
- std::uint8_t *expected,
- std::uint8_t *actual,
+ std::uint8_t const * expected,
+ std::uint8_t const * actual,
std::size_t length
) {
if (std::memcmp(expected, actual, length)) {