Add a unit test to show that bug #49648 no longer occurs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1139245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2011-06-24 11:18:49 +00:00
parent bc467bb8c1
commit 23077dfb49
2 changed files with 14 additions and 0 deletions

View File

@ -392,4 +392,18 @@ public final class TestBugs extends TestCase {
// Good
}
}
/**
* Changing text from Ascii to Unicode
*/
public void test49648() throws Exception {
SlideShow ppt = new SlideShow(_slTests.openResourceAsStream("49648.ppt"));
for(Slide slide : ppt.getSlides()) {
for(TextRun run : slide.getTextRuns()) {
String text = run.getRawText();
text.replace("{txtTot}", "With \u0123\u1234\u5678 unicode");
run.setRawText(text);
}
}
}
}

Binary file not shown.