Commit 5f9cc655 authored by Mark Haines's avatar Mark Haines
Browse files

const correctness

parent ba446e7a
...@@ -22,8 +22,8 @@ char const * TEST_CASE; ...@@ -22,8 +22,8 @@ char const * TEST_CASE;
template<typename T> template<typename T>
void assert_equals( void assert_equals(
const T & expected, T const & expected,
const T & actual T const & actual
) { ) {
if (expected != actual) { if (expected != actual) {
std::cout << "FAILED: " << TEST_CASE << std::endl; std::cout << "FAILED: " << TEST_CASE << std::endl;
...@@ -35,8 +35,8 @@ void assert_equals( ...@@ -35,8 +35,8 @@ void assert_equals(
void assert_equals( void assert_equals(
std::uint8_t *expected, std::uint8_t const * expected,
std::uint8_t *actual, std::uint8_t const * actual,
std::size_t length std::size_t length
) { ) {
if (std::memcmp(expected, actual, length)) { if (std::memcmp(expected, actual, length)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment