git.samba.org
/
obnox
/
wiki2beamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35544f1
)
test: add trivial test for color transform
author
Valentin Haenel
<valentin.haenel@gmx.de>
Thu, 28 Apr 2011 18:20:06 +0000
(20:20 +0200)
committer
Valentin Haenel
<valentin.haenel@gmx.de>
Thu, 28 Apr 2011 18:27:30 +0000
(20:27 +0200)
tests/test_wiki2beamer.py
patch
|
blob
|
history
diff --git
a/tests/test_wiki2beamer.py
b/tests/test_wiki2beamer.py
index 7ef28150de2a0fe22159ed85a62ba91bf6b0f513..bbdc766b6f3bc44d05c3e7d9ed9e0564452e7f07 100755
(executable)
--- a/
tests/test_wiki2beamer.py
+++ b/
tests/test_wiki2beamer.py
@@
-129,6
+129,9
@@
class TestTransform(unittest.TestCase):
'foo +<2-3> {\\begin{enumerate} \\end{enumerate}}', self.state),\
'foo \\uncover<2-3>{\\begin{enumerate} \\end{enumerate}}')
+ def test_color(self):
+ self.assertEqual(transform('_blue_foo_', self.state),
+ '\\textcolor{blue}{foo}')
class TestExpandCode(unittest.TestCase):
def test_search_escape_sequences_basic(self):