mirror of https://github.com/apache/poi.git
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:
parent
c7bc6ff60d
commit
4c8b818ca6
|
@ -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.
Loading…
Reference in New Issue