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

Function test_gfx_circle_ok

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

Source from the content-addressed store, hash-verified

1380
1381 #[test]
1382 fn test_gfx_circle_ok() {
1383 Tester::default()
1384 .run("GFX_CIRCLE 0, 0, 0")
1385 .expect_output([CapturedOut::DrawCircle(PixelsXY { x: 0, y: 0 }, 0)])
1386 .check();
1387
1388 Tester::default()
1389 .run("GFX_CIRCLE 1.1, 2.3, 2.5")
1390 .expect_output([CapturedOut::DrawCircle(PixelsXY { x: 1, y: 2 }, 3)])
1391 .check();
1392
1393 Tester::default()
1394 .run("GFX_CIRCLE -31000, -32000, 31000")
1395 .expect_output([CapturedOut::DrawCircle(PixelsXY { x: -31000, y: -32000 }, 31000)])
1396 .check();
1397 }
1398
1399 #[test]
1400 fn test_gfx_circle_errors() {

Callers

nothing calls this directly

Calls 3

checkMethod · 0.45
expect_outputMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected