|
@@ -141,8 +141,8 @@ TEST_CASE("shellmatta_utils_removeChars_remove_chars_in_the_middle_of_the_buffer
|
|
utils_removeChars(&inst, length, backspace);
|
|
utils_removeChars(&inst, length, backspace);
|
|
|
|
|
|
CHECK( inst.cursor == 10u);
|
|
CHECK( inst.cursor == 10u);
|
|
- CHECK( inst.inputCount == 20u);
|
|
|
|
- REQUIRE(strncmp("abcdefghijklmnopqr", buffer, sizeof(buffer)) == 0);
|
|
|
|
|
|
+ CHECK( inst.inputCount == 15u);
|
|
|
|
+ REQUIRE(strncmp("abcdefghijpqr", buffer, sizeof(buffer)) == 0);
|
|
}
|
|
}
|
|
|
|
|
|
TEST_CASE("shellmatta_utils_removeChars_remove_more_chars_in_middle_of_buffer_than_are_present_backspace_false"){
|
|
TEST_CASE("shellmatta_utils_removeChars_remove_more_chars_in_middle_of_buffer_than_are_present_backspace_false"){
|
|
@@ -168,8 +168,8 @@ TEST_CASE("shellmatta_utils_removeChars_remove_more_chars_in_middle_of_buffer_th
|
|
utils_removeChars(&inst, length, backspace);
|
|
utils_removeChars(&inst, length, backspace);
|
|
|
|
|
|
CHECK( inst.cursor == 10u);
|
|
CHECK( inst.cursor == 10u);
|
|
- CHECK( inst.inputCount == 20u);
|
|
|
|
- REQUIRE(strncmp("abcdefghijklmnopqr", buffer, sizeof(buffer)) == 0);
|
|
|
|
|
|
+ CHECK( inst.inputCount == 10u);
|
|
|
|
+ REQUIRE(strncmp("abcdefghij", buffer, 10u) == 0);
|
|
}
|
|
}
|
|
|
|
|
|
TEST_CASE("shellmatta_utils_removeChars_curser_outside_buffer"){
|
|
TEST_CASE("shellmatta_utils_removeChars_curser_outside_buffer"){
|