summaryrefslogtreecommitdiff
path: root/tests/test_cpp.py
diff options
context:
space:
mode:
authorOleh Prypin <oleh@pryp.in>2021-01-18 20:39:02 +0100
committerGitHub <noreply@github.com>2021-01-18 20:39:02 +0100
commitf0445be718da83541ea3401aad882f3937147263 (patch)
tree26bd361a410d8bea33ce259321fad63e7f3c61af /tests/test_cpp.py
parent423c44a451db7e5f63147b1c1519661d745fc43a (diff)
downloadpygments-git-f0445be718da83541ea3401aad882f3937147263.tar.gz
Replace tests that assert on token output with auto-updatable samples (#1649)
Diffstat (limited to 'tests/test_cpp.py')
-rw-r--r--tests/test_cpp.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/test_cpp.py b/tests/test_cpp.py
index 7b6d4db4..bb803690 100644
--- a/tests/test_cpp.py
+++ b/tests/test_cpp.py
@@ -6,35 +6,11 @@
:license: BSD, see LICENSE for details.
"""
-import pytest
-
from pygments.lexers import CppLexer, CLexer
-from pygments.token import Token
from pygments.lexers import guess_lexer
-@pytest.fixture(scope='module')
-def lexer():
- yield CppLexer()
-
-
-def test_good_comment(lexer):
- fragment = '/* foo */\n'
- tokens = [
- (Token.Comment.Multiline, '/* foo */'),
- (Token.Text, '\n'),
- ]
- assert list(lexer.get_tokens(fragment)) == tokens
-
-
-def test_open_comment(lexer):
- fragment = '/* foo\n'
- tokens = [
- (Token.Comment.Multiline, '/* foo\n'),
- ]
- assert list(lexer.get_tokens(fragment)) == tokens
-
def test_guess_c_lexer():
code = '''
#include <stdio.h>