From d89491941c9a91d441e11e0e98c3335ff95ed890 Mon Sep 17 00:00:00 2001 From: Ingmar Steiner Date: Wed, 15 Jul 2015 12:34:52 +0200 Subject: [PATCH] expose another edge case for syllabification failure --- .../java/marytts/modules/phonemiser/AllophoneSetTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/marytts-common/src/test/java/marytts/modules/phonemiser/AllophoneSetTest.java b/marytts-common/src/test/java/marytts/modules/phonemiser/AllophoneSetTest.java index 6520f68d..3172b06f 100644 --- a/marytts-common/src/test/java/marytts/modules/phonemiser/AllophoneSetTest.java +++ b/marytts-common/src/test/java/marytts/modules/phonemiser/AllophoneSetTest.java @@ -177,4 +177,11 @@ public class AllophoneSetTest { // @formatter:on } + @Test(expectedExceptions = IllegalArgumentException.class) + public void testLegacySyllabifyWithoutNucleus() { + String actual = allophoneSet.syllabify("s1"); + String expected = "' s"; + Assert.assertEquals(actual, expected); + } + }