diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-10-04 11:06:05 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-10-04 11:06:05 +0100 |
| commit | be4da80bead1f5d4879919f88acfa22a9e638c20 (patch) | |
| tree | ddb76bd501061eb17a98b36f85d6917128d2ec78 | |
| parent | 2b4b4fe180b23da67d05ef7376e879c00201e22c (diff) | |
Don't require java and rust output for all examples
| -rw-r--r-- | src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java index 77248f7..dbd1227 100644 --- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java +++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java @@ -35,7 +35,8 @@ public class ExampleTests { verifyTypescriptOutput(exampleSet); var transient0OutputDirs = Stream.of(javaOutputPath, rustOutputPath) - .map(outputPath -> outputPath.orElseThrow().resolve("transient-0")) + .flatMap(outputPath -> outputPath.stream()) + .map(outputPath -> outputPath.resolve("transient-0")) .filter(transient0OutputPath -> transient0OutputPath.toFile().exists()) .toList(); |
