diff options
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/common/ring_buffer.cpp | 2 | ||||
| -rw-r--r-- | src/tests/common/scratch_buffer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/common/ring_buffer.cpp b/src/tests/common/ring_buffer.cpp index 7dee988c8..e85f9977b 100644 --- a/src/tests/common/ring_buffer.cpp +++ b/src/tests/common/ring_buffer.cpp | |||
| @@ -52,7 +52,7 @@ TEST_CASE("RingBuffer: Basic Tests", "[common]") { | |||
| 52 | 52 | ||
| 53 | REQUIRE(buf.Size() == 1U); | 53 | REQUIRE(buf.Size() == 1U); |
| 54 | 54 | ||
| 55 | // Pushing more values than space available should partially suceed. | 55 | // Pushing more values than space available should partially succeed. |
| 56 | { | 56 | { |
| 57 | std::vector<char> to_push(6); | 57 | std::vector<char> to_push(6); |
| 58 | std::iota(to_push.begin(), to_push.end(), 88); | 58 | std::iota(to_push.begin(), to_push.end(), 88); |
diff --git a/src/tests/common/scratch_buffer.cpp b/src/tests/common/scratch_buffer.cpp index 132f139fa..26e401760 100644 --- a/src/tests/common/scratch_buffer.cpp +++ b/src/tests/common/scratch_buffer.cpp | |||
| @@ -191,7 +191,7 @@ TEST_CASE("ScratchBuffer: Span Writes", "[common]") { | |||
| 191 | 191 | ||
| 192 | for (size_t i = 0; i < buf_span.size(); ++i) { | 192 | for (size_t i = 0; i < buf_span.size(); ++i) { |
| 193 | const auto new_value = static_cast<u8>(i + 1U); | 193 | const auto new_value = static_cast<u8>(i + 1U); |
| 194 | // Writes to a span of the scratch buffer will propogate to the buffer itself | 194 | // Writes to a span of the scratch buffer will propagate to the buffer itself |
| 195 | buf_span[i] = new_value; | 195 | buf_span[i] = new_value; |
| 196 | REQUIRE(buf[i] == new_value); | 196 | REQUIRE(buf[i] == new_value); |
| 197 | } | 197 | } |