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

Function test_gfx_height

std/src/gfx/mod.rs:1469–1478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1467
1468 #[test]
1469 fn test_gfx_height() {
1470 let mut t = Tester::default();
1471 t.get_console().borrow_mut().set_size_pixels(SizeInPixels::new(1, 768));
1472 t.run("result = GFX_HEIGHT").expect_var("result", 768i32).check();
1473
1474 check_expr_error("1:10: Graphical console size not yet set", "GFX_HEIGHT");
1475
1476 check_expr_compilation_error("1:10: GFX_HEIGHT expected no arguments", "GFX_HEIGHT()");
1477 check_expr_compilation_error("1:10: GFX_HEIGHT expected no arguments", "GFX_HEIGHT(1)");
1478 }
1479
1480 #[test]
1481 fn test_gfx_line_ok() {

Callers

nothing calls this directly

Calls 7

check_expr_errorFunction · 0.85
set_size_pixelsMethod · 0.80
expect_varMethod · 0.80
get_consoleMethod · 0.45
checkMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected