@Test public void u2ZCompatibilityTest() throws IOException { String sourceResourcePath = "/com/google/myanmartools/udhr_mya_unicode_src.txt"; String goldenResourcePath = "/com/google/myanmartools/udhr_mya_zawgyi_out.txt"; BufferedReader input = new BufferedReader( new InputStreamReader( TransliterateU2Z.class.getResourceAsStream(sourceResourcePath), UTF_8)); BufferedReader golden = new BufferedReader( new InputStreamReader( TransliterateU2Z.class.getResourceAsStream(goldenResourcePath), UTF_8)); int lineNum = 0; String uLine = input.readLine(); while (uLine != null) { String convertedLine = zNorm.convert(u2Z.convert(uLine)); String goldenLine = zNorm.convert(golden.readLine()); assertWithMessage("Difference in line " + lineNum). that(convertedLine).isEqualTo(goldenLine); uLine = input.readLine(); lineNum ++; } }
public String convert(CharSequence inString) { return runAllPhases(inString.toString()); }
Transliterate { public String convert(CharSequence inString) { return runAllPhases(inString.toString()); } }
Transliterate { public String convert(CharSequence inString) { return runAllPhases(inString.toString()); } Transliterate(String id); }
Transliterate { public String convert(CharSequence inString) { return runAllPhases(inString.toString()); } Transliterate(String id); @Override String toString(); String convert(CharSequence inString); }
Transliterate { public String convert(CharSequence inString) { return runAllPhases(inString.toString()); } Transliterate(String id); @Override String toString(); String convert(CharSequence inString);  }