removed \e from sourcecode and testcases

This commit is contained in:
prozessorkern
2020-02-03 20:45:19 +01:00
parent ea3c90f305
commit 34ec2d9b45
9 changed files with 16 additions and 16 deletions

View File

@@ -36,5 +36,5 @@ TEST_CASE( "shellmatta_utils_eraseLine" ) {
CHECK( write_callCnt == 1u);
CHECK( write_length == 3u);
REQUIRE( strncmp("\e[K", write_data, 3u) == 0);
REQUIRE( strncmp("\x1b[K", write_data, 3u) == 0);
}

View File

@@ -36,7 +36,7 @@ TEST_CASE( "shellmatta_utils_forwardCursor normal" ) {
CHECK( write_callCnt == 1u);
CHECK( write_length == 4u);
REQUIRE( strncmp("\e[5C", write_data, 4u) == 0);
REQUIRE( strncmp("\x1b[5C", write_data, 4u) == 0);
}
TEST_CASE( "shellmatta_utils_forwardCursor normal echo off" ) {
@@ -85,7 +85,7 @@ TEST_CASE( "shellmatta_utils_forwardCursor forward by 12 with cursor at 5 and in
CHECK( write_callCnt == 1u);
CHECK( write_length == 4u);
REQUIRE( strncmp("\e[5C", write_data, 4u) == 0);
REQUIRE( strncmp("\x1b[5C", write_data, 4u) == 0);
}
TEST_CASE( "shellmatta_utils_forwardCursor forward by 0" ) {

View File

@@ -36,7 +36,7 @@ TEST_CASE( "shellmatta_insertChars normal call" ) {
CHECK( inst.cursor == 12);
CHECK( inst.inputCount == 14);
CHECK( write_callCnt == 5u );
CHECK( strncmp("blks\e[K\e[sij\e[u", write_data, 15u) == 0);
CHECK( strncmp("blks\x1b[K\x1b[sij\x1b[u", write_data, 15u) == 0);
REQUIRE( strncmp("abcdefghblksij\0\0\0\0\0\0\0", buffer, sizeof(buffer)) == 0);
}

View File

@@ -36,5 +36,5 @@ TEST_CASE( "shellmatta_utils_restoreCursorPos" ) {
CHECK( write_callCnt == 1u);
CHECK( write_length == 3u);
REQUIRE( strncmp("\e[u", write_data, 3u) == 0);
REQUIRE( strncmp("\x1b[u", write_data, 3u) == 0);
}

View File

@@ -36,7 +36,7 @@ TEST_CASE( "shellmatta_utils_rewindCursor normal" ) {
CHECK( write_callCnt == 1u);
CHECK( write_length == 4u);
REQUIRE( strncmp("\e[5D", write_data, 4u) == 0);
REQUIRE( strncmp("\x1b[5D", write_data, 4u) == 0);
}
@@ -61,7 +61,7 @@ TEST_CASE( "shellmatta_utils_rewindCursor rewind by 12 with cursor at 10" ) {
CHECK( write_callCnt == 1u);
CHECK( write_length == 5u);
REQUIRE( strncmp("\e[10D", write_data, 5u) == 0);
REQUIRE( strncmp("\x1b[10D", write_data, 5u) == 0);
}
TEST_CASE( "shellmatta_utils_rewindCursor rewind by 0" ) {

View File

@@ -36,5 +36,5 @@ TEST_CASE( "shellmatta_utils_saveCursorPos" ) {
CHECK( write_callCnt == 1u);
CHECK( write_length == 3u);
REQUIRE( strncmp("\e[s", write_data, 3u) == 0);
REQUIRE( strncmp("\x1b[s", write_data, 3u) == 0);
}