Skip to content

Commit 6e44b68

Browse files
Rename ShapeTests to PGraphicsTests, move to core package, merge tests
1 parent 96fab27 commit 6e44b68

File tree

2 files changed

+19
-35
lines changed

2 files changed

+19
-35
lines changed

core/test/processing/ShapeTests.java

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)