We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reordered in 2.9.0:
pygments/pygments@3f6244b
_____________________________ test_guess_language ______________________________ def test_guess_language() -> None: # python assert ( utility.guess_language( """ import math math.ceil(0.5) """ ) == "python" ) assert ( utility.guess_language( """ # this is a comment """, "__init__.py", ) == "python" ) # bash assert ( utility.guess_language( """ #!/usr/bin/bash set -euxo pipefail """, "script.sh", ) == "bash" ) # php assert utility.guess_language( """ <?php $var = 0.5; abs($var); """ ).endswith( "php" ) # for some reason this is guessed as js+php # yaml assert ( utility.guess_language( """ --- one: two: 3 four: five """, "some.yml", ) == "yaml" ) # rst > assert ( utility.guess_language( """ Title ===== Subtitle -------- - One - Two """, "doc.rst", ) == "rst" ) E AssertionError: assert 'restructuredtext' == 'rst' E - rst E + restructuredtext test/test_utility.py:69: AssertionError =========================== short test summary info ============================ FAILED test/test_utility.py::test_guess_language - AssertionError: assert 're... ========================= 1 failed, 98 passed in 6.57s =========================
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reordered in 2.9.0:
pygments/pygments@3f6244b
The text was updated successfully, but these errors were encountered: