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

Function test_gfx_width

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

Source from the content-addressed store, hash-verified

1855
1856 #[test]
1857 fn test_gfx_width() {
1858 let mut t = Tester::default();
1859 t.get_console().borrow_mut().set_size_pixels(SizeInPixels::new(12345, 1));
1860 t.run("result = GFX_WIDTH").expect_var("result", 12345i32).check();
1861
1862 check_expr_error("1:10: Graphical console size not yet set", "GFX_WIDTH");
1863
1864 check_expr_compilation_error("1:10: GFX_WIDTH expected no arguments", "GFX_WIDTH()");
1865 check_expr_compilation_error("1:10: GFX_WIDTH expected no arguments", "GFX_WIDTH(1)");
1866 }
1867}

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