Enhance postcard puzzles and narration

This commit is contained in:
Hadrian Burkhardt
2026-11-14 08:55:48 +01:00
parent abaab927d9
commit b19295472d
158 changed files with 5257 additions and 1695 deletions
+21
View File
@@ -114,6 +114,27 @@ void main() {
}
});
test('every Elias and echo cue uses the same cloned voice reference', () {
final references = <String>{};
var cloned = 0;
for (final track in book.tracks.values) {
for (final cue in track['cues'] as List) {
final role = cue['speaker'];
if (role == 'Elias' || role == 'The echo') {
final synthesis = cue['synthesis'] as Map;
expect(synthesis['engine'], 'qwen3-voice-clone');
expect(synthesis['model'], 'Qwen/Qwen3-TTS-12Hz-1.7B-Base');
references.add(synthesis['referenceSha256'] as String);
cloned++;
} else {
expect(cue['synthesis'], isNull);
}
}
}
expect(cloned, 93);
expect(references.length, 1);
});
test('all discoveries award once, survive read-ahead and restore independently of other books', () async {
final store = Progress.memory();
final g = Game(book, store, library: library);