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

Function test_scrcols

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

Source from the content-addressed store, hash-verified

1080
1081 #[test]
1082 fn test_scrcols() {
1083 let mut t = Tester::default();
1084 t.get_console().borrow_mut().set_size_chars(CharsXY { x: 12345, y: 0 });
1085 t.run("result = SCRCOLS").expect_var("result", 12345i32).check();
1086
1087 check_expr_compilation_error("1:10: SCRCOLS expected no arguments", "SCRCOLS()");
1088 check_expr_compilation_error("1:10: SCRCOLS expected no arguments", "SCRCOLS(1)");
1089 }
1090
1091 #[test]
1092 fn test_scrrows() {

Callers

nothing calls this directly

Calls 6

expect_varMethod · 0.80
set_size_charsMethod · 0.45
get_consoleMethod · 0.45
checkMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected