Enhance postcard puzzles and narration
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user