MCPcopy Create free account
hub / github.com/evilsocket/cake / test_rules_fallback

Function test_rules_fallback

cake-core/src/models/luxtts/tokenizer.rs:296–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

294
295 #[test]
296 fn test_rules_fallback() {
297 let tokens_file = make_test_tokens();
298 let p = Phonemizer::load(tokens_file.path(), None).unwrap();
299 let ipa = p.rules_fallback("cat");
300 // c→k, a→æ, t→t
301 assert!(ipa.contains('k'));
302 assert!(ipa.contains('\u{00E6}')); // æ
303 assert!(ipa.contains('t'));
304 }
305}

Callers

nothing calls this directly

Calls 2

make_test_tokensFunction · 0.85
rules_fallbackMethod · 0.80

Tested by

no test coverage detected