Skip to content

Commit

Permalink
tests: uart_elementary: Correct typos
Browse files Browse the repository at this point in the history
Correct typos in uart_elementary test

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
  • Loading branch information
ydamigos authored and nashif committed Jul 15, 2024
1 parent 0cfb8a4 commit d2a4522
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/drivers/uart/uart_elementary/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ that are not tested elsewhere.
UART interrupt mode is used for the tests purpose.

Hardware setup required for these tests:
For single uart conviguration - UART0 TX connected to RX and CTS to RTS
For single uart configuration - UART0 TX connected to RX and CTS to RTS
For dual uart configuratiom - UART0 and UART1 TXs and RXs cross-connected

These test cases cover:
Expand Down
6 changes: 3 additions & 3 deletions tests/drivers/uart/uart_elementary/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ ZTEST(uart_elementary, test_uart_basic_transmission)
uart_irq_err_disable(uart_dev);
for (int index = 0; index < TEST_BUFFER_LEN; index++) {
zassert_equal(test_buffer[index], test_pattern[index],
"Recieived data byte %d does not match pattern 0x%x != 0x%x", index,
"Received data byte %d does not match pattern 0x%x != 0x%x", index,
test_buffer[index], test_pattern[index]);
}
}
Expand Down Expand Up @@ -295,10 +295,10 @@ ZTEST(uart_elementary, test_uart_dual_port_transmission)
#else
for (int index = 0; index < TEST_BUFFER_LEN; index++) {
zassert_equal(test_buffer[index], test_pattern[index],
"UART0 recieived data byte %d does not match pattern 0x%x != 0x%x",
"UART0 received data byte %d does not match pattern 0x%x != 0x%x",
index, test_buffer[index], test_pattern[index]);
zassert_equal(test_buffer_aux[index], test_pattern[index],
"UART1 recieived data byte %d does not match pattern 0x%x != 0x%x",
"UART1 received data byte %d does not match pattern 0x%x != 0x%x",
index, test_buffer_aux[index], test_pattern[index]);
}
#endif /* CONFIG_SETUP_MISMATCH_TEST */
Expand Down

0 comments on commit d2a4522

Please sign in to comment.