We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 625e210 commit 24faa54Copy full SHA for 24faa54
1 file changed
core/test/processing/core/PGraphicsTests.java
@@ -0,0 +1,19 @@
1
+package processing.core;
2
+
3
+import org.junit.Test;
4
+import static org.junit.Assert.assertEquals;
5
+import processing.core.PGraphics;
6
7
+public class PGraphicsTests {
8
9
+ @Test
10
+ public void testCanvasSizeAfterSetSize() {
11
+ // Create a PGraphics object and set its size
12
+ PGraphics pg = new PGraphics();
13
+ pg.setSize(200, 150);
14
15
+ // Assert that both width and height are correctly initialized
16
+ assertEquals(200, pg.width);
17
+ assertEquals(150, pg.height);
18
+ }
19
+}
0 commit comments