diff options
Diffstat (limited to 'application/test/tests')
-rw-r--r-- | application/test/tests/test_libraries_pygments.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/application/test/tests/test_libraries_pygments.php b/application/test/tests/test_libraries_pygments.php index 768bca439..d6bb559ee 100644 --- a/application/test/tests/test_libraries_pygments.php +++ b/application/test/tests/test_libraries_pygments.php @@ -80,7 +80,14 @@ class test_libraries_pygments extends \test\Test { { $p = new \libraries\Pygments('/invalid/filepath', 'image/svg+xml', 'foo.svg'); $this->t->is($p->can_highlight(), true, "image/svg+xml can highlight"); - } + } + + public function test_autodetect_lexer_strangeFilenames() + { + $p = new \libraries\Pygments('/invalid/filepath', 'text/plain', 'foo.'); + $this->t->is($p->autodetect_lexer(), 'text', "foo. should be text"); + + } } |