From 7272bb92deb55a032ef37e6f3f8549793b1e2a3b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 26 Jul 2026 16:04:41 +0100 Subject: Distinguish sum variant from untagged value in java-transient-0 --- src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java index fceb6e3..1c77a83 100644 --- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java +++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java @@ -52,7 +52,7 @@ public class ExampleTests { var actualBytes = Files.readAllBytes(transient0OutputDir.resolve(name)); if (expectedBytes.isEmpty()) { expectedBytes = Optional.of(actualBytes); - } else if (!name.equals("StructWithSharedSumAndVariant")) { + } else { assertThat(Arrays.equals(actualBytes, expectedBytes.get()), equalTo(true)); } } -- cgit v1.2.3