()
| 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 | } |
nothing calls this directly
no test coverage detected