From a2ec5cfc26b8cecf900605c015b443229b075178 Mon Sep 17 00:00:00 2001 From: goodger Date: Sat, 24 May 2003 20:54:11 +0000 Subject: updated git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@1340 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- .../test/test_transforms/test_substitutions.py | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'docutils/test/test_transforms') diff --git a/docutils/test/test_transforms/test_substitutions.py b/docutils/test/test_transforms/test_substitutions.py index eec8c632f..4c17bd8c8 100755 --- a/docutils/test/test_transforms/test_substitutions.py +++ b/docutils/test/test_transforms/test_substitutions.py @@ -78,6 +78,35 @@ u"""\ """], ]) +totest['unicode'] = ((Substitutions,), [ +["""\ +Insert an em-dash (|mdash|), a copyright symbol (|copy|), and a non-breaking +space (|nbsp|). + +.. |mdash| unicode:: 0x02014 +.. |copy| unicode:: \\u00A9 +.. |nbsp| unicode::   +""", +u"""\ + + + Insert an em-dash ( + \u2014 + ), a copyright symbol ( + \u00A9 + ), and a non-breaking + space ( + \u00A0 + ). + + \u2014 + + \u00A9 + + \u00A0 +"""], +]) + if __name__ == '__main__': import unittest -- cgit v1.2.1