MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_color_errors

Function test_color_errors

std/src/console/cmds.rs:742–754  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

740
741 #[test]
742 fn test_color_errors() {
743 check_stmt_compilation_err(
744 "1:1: COLOR expected <> | <fg%> | <[fg%], [bg%]>",
745 "COLOR 1, 2, 3",
746 );
747 check_stmt_compilation_err("1:8: COLOR expected <> | <fg%> | <[fg%], [bg%]>", "COLOR 1; 2");
748
749 check_stmt_err("1:7: Color out of range", "COLOR 1000, 0");
750 check_stmt_err("1:10: Color out of range", "COLOR 0, 1000");
751
752 check_stmt_compilation_err("1:7: BOOLEAN is not a number", "COLOR TRUE, 0");
753 check_stmt_compilation_err("1:10: BOOLEAN is not a number", "COLOR 0, TRUE");
754 }
755
756 #[test]
757 fn test_inkey_ok() {

Callers

nothing calls this directly

Calls 2

check_stmt_errFunction · 0.85

Tested by

no test coverage detected