The code simulates saving a note through a DAO and prints the final state to stdout. After a regression, the final result no longer matches the expected behavior when an error occurs during writing.
main().replaceLabels() may terminate with an exception, and that reading the snapshot after that is performed from the same repository.kotlinc Main.kt NoteStore.kt -include-runtime -d app.jar
java -jar app.jar
NoteStore with initial values;saveNote();main();snapshot().stdout of the current regressed version.replaceLabels() deterministically occurs on the label "fail"snapshot() always reads the state of the same NoteStore instance that was used in saveNote()Click a line and write what it prints. Explanation is optional.