tcp_cmd
fix tests
This commit is contained in:
@@ -84,8 +84,8 @@ TEST(TCP_CMD, tcp_data_cb) {
|
||||
EXPECT_EQ(output, "help : shows a list of commands\n"
|
||||
"clear text/images : clears the text or images on the lcd\n"
|
||||
"text \"<text>\" : puts text on the lcd\n"
|
||||
"bgColor <r> <g> <b> : set the background color of the lcd\n"
|
||||
"color <r> <g> <b> : set the color of the text\n"
|
||||
"bgColor (<a>) <r> <g> <b> : set the background color of the lcd\n"
|
||||
"color (<a>) <r> <g> <b> : set the color of the text\n"
|
||||
"listFiles : shows a list with images in the filesystem\n"
|
||||
"setImage <image_name> : put an image on the screen\n"
|
||||
"setGif <image_name> : put a gif on the screen\n"
|
||||
@@ -95,8 +95,8 @@ TEST(TCP_CMD, tcp_data_cb) {
|
||||
"help : shows a list of commands\n"
|
||||
"clear text/images : clears the text or images on the lcd\n"
|
||||
"text \"<text>\" : puts text on the lcd\n"
|
||||
"bgColor <r> <g> <b> : set the background color of the lcd\n"
|
||||
"color <r> <g> <b> : set the color of the text\n"
|
||||
"bgColor (<a>) <r> <g> <b> : set the background color of the lcd\n"
|
||||
"color (<a>) <r> <g> <b> : set the color of the text\n"
|
||||
"listFiles : shows a list with images in the filesystem\n"
|
||||
"setImage <image_name> : put an image on the screen\n"
|
||||
"setGif <image_name> : put a gif on the screen\n"
|
||||
@@ -113,7 +113,7 @@ TEST(TCP_CMD, tcp_data_cb) {
|
||||
#ifndef DEBUG
|
||||
EXPECT_EQ(output, "$>\n");
|
||||
#else
|
||||
EXPECT_EQ(output, "tcp_recved\nlcd_display_text @ 10 10 with color 0xFF000000 bg color 0xFF000000\nThis is printed on the display\ntcp_write:\n$>\ntcp_output\npbuf_free\n");
|
||||
EXPECT_EQ(output, "tcp_recved\nlcd_display_text @ 10 10 with color 0xFFFFFFFF bg color 0xFF000000\nThis is printed on the display\ntcp_write:\n$>\ntcp_output\npbuf_free\n");
|
||||
#endif
|
||||
|
||||
strcpy(cmd, "color 0x555555");
|
||||
|
||||
Reference in New Issue
Block a user