diff --git a/tests/test_snippet_helper.py b/tests/test_snippet_helper.py index 01306ab..b7f99ae 100644 --- a/tests/test_snippet_helper.py +++ b/tests/test_snippet_helper.py @@ -1,26 +1,25 @@ #!/bin/env python3 from __future__ import print_function import unittest class SnippetHelperTest(unittest.TestCase): "Unit tests for SnippetHelper" def setUp(self, ): pass def test_cpp_snippet(self): from Slides import snippet_helper as sh sh.Snippet.default_line_number = True sh.Snippet.default_output = 'latex' snip = sh.Snippet('tests/snippet.cpp') snip.save('snippet2.cpp') f = open('snippet2.cpp') snip2 = f.read() f.close() if snip.get_content() != snip2: print('AAA ', snip.get_content()) print('BBB ', snip2) raise RuntimeError('failed test') -