summaryrefslogtreecommitdiff
path: root/examples/05-list/output/java/src/test
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-31 10:50:10 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-31 10:50:10 +0100
commit578bf1f04b48f48225cfa794a27426cca4f6384a (patch)
treefc5c2737ffa65e20305f165a593111463a36166d /examples/05-list/output/java/src/test
parent1831d27671abe87bcbea5da40517093c37efb9b7 (diff)
Support singleton structs
Diffstat (limited to 'examples/05-list/output/java/src/test')
-rw-r--r--examples/05-list/output/java/src/test/java/org/zwobble/example/PointTests.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/examples/05-list/output/java/src/test/java/org/zwobble/example/PointTests.java b/examples/05-list/output/java/src/test/java/org/zwobble/example/PointTests.java
deleted file mode 100644
index e1528b5..0000000
--- a/examples/05-list/output/java/src/test/java/org/zwobble/example/PointTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package org.zwobble.example;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import org.junit.jupiter.api.Test;
-import java.util.List;
-import org.zwobble.example.types.point.Path;
-import org.zwobble.example.types.point.Point;
-
-public class PointTests {
- @Test
- public void canCreatePathWithConstructor() {
- Path path = new Path(List.of(
- new Point(10, 25),
- new Point(25, 10)
- ));
-
- assertEquals(path.points().size(), 2);
- }
-
- @Test
- public void canCreatePathWithBuilder() {
- Path path = Path.arbitrary()
- .addPoint(new Point(10, 25))
- .addPoint(new Point(25, 10))
- .build();
-
- assertEquals(path, new Path(List.of(
- new Point(10, 25),
- new Point(25, 10)
- )));
- }
-}