Skip to content

Commit c9a5ba1

Browse files
Name both state sets in ErrorStateHintMultipleSets
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 79a819c commit c9a5ba1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎liquidjava-example/src/main/java/testSuite/ErrorStateHintMultipleSets.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import liquidjava.specification.StateRefinement;
44
import liquidjava.specification.StateSet;
55

6-
@StateSet(name = "door", value = {"closed", "opened"})
7-
@StateSet({"unlocked", "locked"})
6+
@StateSet(name = "doorState", value = {"closed", "opened"})
7+
@StateSet(name = "lockState", value = {"unlocked", "locked"})
88
public class ErrorStateHintMultipleSets {
99

1010
@StateRefinement(to = "closed(this) && unlocked(this)")

‎liquidjava-verifier/src/test/java/liquidjava/api/tests/TestStateHints.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ void foundOfTheStudysUndoManagerOmitsTheResultsOfOtherCalls() {
343343
void foundKeepsANamedStateSetByItsName() {
344344
StateRefinementError error = errors("ErrorStateHintMultipleSets.java", 1).get(0);
345345
assertEquals(
346-
"found closed(d@26) && unlocked(d@26) && locked(d) && door(d) == door(d@26) but expected closed(d) && unlocked(d)",
346+
"found closed(d@26) && unlocked(d@26) && locked(d) && doorState(d) == doorState(d@26) but expected closed(d) && unlocked(d)",
347347
error.getMessage().replaceAll("[⁰¹²³⁴⁵⁶⁷⁸⁹]", ""));
348348
}
349349

0 commit comments

Comments
 (0)