@@ -99,17 +99,17 @@ public void testSwiCpl() {
9999
100100 @ Test
101101 public void testParseStringWithSpecialChars () {
102- final PrologParser parser = parseEd ("'0\\ 'a \u0008 Hello \\ \ n World\u0021 \\ r'.\" 0'a \\ xFF\\ Another String\u0007 \" ." );
102+ final PrologParser parser = parseEd ("'0\\ 'a Hello \\ \ n World\u0021 \\ r'.\" 0'a \\ xFF\\ Another String\" ." );
103103 PrologTerm term = parser .next ();
104104
105105 assertEquals (ATOM , term .getTermType ());
106106 assertEquals (PrologTerm .QuotingType .SINGLE_QUOTED , term .getQuotingType ());
107- assertEquals ("0\\ 'a \\ bHello \\ nWorld!\\ r" , StringUtils .escapeString (term .getTermText (), SINGLE_QUOTED ));
107+ assertEquals ("0\\ 'a Hello \\ nWorld!\\ r" , StringUtils .escapeString (term .getTermText (), SINGLE_QUOTED ));
108108
109109 term = parser .next ();
110110 assertNotNull (term );
111111 assertEquals (PrologTerm .QuotingType .DOUBLE_QUOTED , term .getQuotingType ());
112- assertEquals ("0'a \u00FF Another String\u0007 " , term .getTermText ());
112+ assertEquals ("0'a ÿAnother String" , term .getTermText ());
113113
114114 }
115115
@@ -896,10 +896,9 @@ private String parseSortAndJoin(final String text) {
896896
897897 @ Test
898898 public void testStringWithIsoControl () {
899- assertEquals ("'hello→world'" , parseSortAndJoin ("'hello\u0000 world'." ));
900- assertEquals ("'hello→world'" , parseSortAndJoin ("'hello\u0001 world'." ));
901- assertEquals ("'hello\\ nworld'" , parseSortAndJoin ("'hello\\ \n world'." ));
902- assertEquals ("'hello\\ nworld'" , parseSortAndJoin ("'hello\\ \r \n world'." ));
899+ assertThrows (PrologParserException .class , ()-> parseEd ("'hello\u0000 world'." ).next ());
900+ assertEquals ("'hello\\ nworld'" , parseEd ("'hello\\ \n world'." ).next ().toString ());
901+ assertEquals ("'hello\\ nworld'" , parseEd ("'hello\\ \r \n world'." ).next ().toString ());
903902 }
904903
905904 @ Test
0 commit comments