Skip to content

Commit

Permalink
* Adjusted tests for wide-character version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Wielemaker committed Dec 20, 2004
1 parent 47b34a0 commit 79c3dd5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Test/ok/cent-utf8.ok
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[element(testdoc, [id='t7-20020923', resp='MSM'], ['\n', element(names, [], ['From Española -- a ', entity(lsquo), test, entity(rsquo), ' for you.']), '\n', element(nums, [], ['From Española -- a ', entity(8216), test, entity(8217), ' for you.']), '\n', element(names, [], ['From Española -- a ', entity(lsquo), test, entity(rsquo), ' for you.']), '\n', element(nums, [], ['From Española -- a ', entity(8216), test, entity(8217), ' for you.']), '\n'])].
[element(testdoc, [id='t7-20020923', resp='MSM'], ['\n', element(names, [], ['From Española -- a testfor you.']), '\n', element(nums, [], ['From Española -- a testfor you.']), '\n', element(names, [], ['From Española -- a testfor you.']), '\n', element(nums, [], ['From Española -- a test for you.']), '\n'])].
[].
2 changes: 1 addition & 1 deletion Test/ok/utf8-cent.ok
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[element(testdoc, [id='t7-20020923', resp='MSM'], ['\n', element(names, [], ['From Española -- a ', entity(8216), test, entity(8217), ' for you.']), '\n', element(nums, [], ['From Española -- a ', entity(8216), test, entity(8217), ' for you.']), '\n', element(names, [], ['From Española -- a ', entity(8216), test, entity(8217), ' for you.']), '\n', element(nums, [], ['From Española -- a ', entity(8216), test, entity(8217), ' for you.']), '\n'])].
[element(testdoc, [id='t7-20020923', resp='MSM'], ['\n', element(names, [], ['From Española -- a testfor you.']), '\n', element(nums, [], ['From Española -- a testfor you.']), '\n', element(names, [], ['From Española -- a testfor you.']), '\n', element(nums, [], ['From Española -- a test for you.']), '\n'])].
[].
2 changes: 2 additions & 0 deletions Test/ok/wchar.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[element(test, [], ['\n ', element(li, [], ['Some cyrillic chars: ий']), '\n ', element(li, [], ['This a an sizzors symbol: ✄']), '\n ', element(a, [att='Cirle with 1: ➀'], []), '\n'])].
[].
4 changes: 3 additions & 1 deletion Test/test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
concat_atom([Dir, '/ok/', Base, '.ok'], OkFile).

load_prolog_file(File, Term, Errors) :-
open(File, read, Fd),
open(File, read, Fd,
[ encoding(utf8)
]),
read(Fd, Term),
( read(Fd, Errors),
Errors \== end_of_file
Expand Down
7 changes: 7 additions & 0 deletions Test/wchar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<test>
<li>Some cyrillic chars: &#1080;&#1081;</li>
<li>This a an sizzors symbol: &#9988;</li>
<a att="Cirle with 1: &#10112;"/>
</test>

0 comments on commit 79c3dd5

Please sign in to comment.