diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mime-detection/comment-objc.m | 6 | ||||
-rw-r--r-- | tests/mime-detection/import-objc++.mm | 6 | ||||
-rw-r--r-- | tests/mime-detection/import-objc.m (renamed from tests/mime-detection/simple-obj-c.m) | 0 | ||||
-rw-r--r-- | tests/mime-detection/include-objc++.mm | 6 | ||||
-rw-r--r-- | tests/mime-detection/list | 12 | ||||
-rw-r--r-- | tests/mime-detection/no-extension-c-comment | 1 | ||||
-rw-r--r-- | tests/mime-detection/simple-troff.mm | 2 | ||||
-rw-r--r-- | tests/mime-detection/simple-troff.tr | 4 |
8 files changed, 35 insertions, 2 deletions
diff --git a/tests/mime-detection/comment-objc.m b/tests/mime-detection/comment-objc.m new file mode 100644 index 00000000..c3801ed1 --- /dev/null +++ b/tests/mime-detection/comment-objc.m @@ -0,0 +1,6 @@ +/*********************************************** +** +** Copyright (C) 2021 name <email@example.com> +** License +** +***********************************************/ diff --git a/tests/mime-detection/import-objc++.mm b/tests/mime-detection/import-objc++.mm new file mode 100644 index 00000000..b90b737e --- /dev/null +++ b/tests/mime-detection/import-objc++.mm @@ -0,0 +1,6 @@ +#import <CoreFoundation/CoreFoundation.h> + +void functionName() +{ + [foo methodical:fixIt]; +} diff --git a/tests/mime-detection/simple-obj-c.m b/tests/mime-detection/import-objc.m index ae0e0e34..ae0e0e34 100644 --- a/tests/mime-detection/simple-obj-c.m +++ b/tests/mime-detection/import-objc.m diff --git a/tests/mime-detection/include-objc++.mm b/tests/mime-detection/include-objc++.mm new file mode 100644 index 00000000..cfa569d9 --- /dev/null +++ b/tests/mime-detection/include-objc++.mm @@ -0,0 +1,6 @@ +#include "myheader.h" + +int Foo::bar() +{ + return rand() % max_; +} diff --git a/tests/mime-detection/list b/tests/mime-detection/list index f5ea935c..946a0575 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -359,8 +359,13 @@ isdir.m text/x-matlab x test.mo text/x-modelica xoo # From https://bugs.freedesktop.org/show_bug.cgi?id=29733 bibtex.bib text/x-bibtex -# hand-made -simple-obj-c.m text/x-objcsrc +# the following 6 test files are hand-made +import-objc.m text/x-objcsrc +comment-objc.m text/x-objcsrc ox +import-objc++.mm text/x-objc++src ox +include-objc++.mm text/x-objc++src ox +simple-troff.tr text/troff +simple-troff.mm text/x-troff-mm xx # Copied from LLVM project test suite test.cl text/x-opencl-src ox # hand-made @@ -800,8 +805,11 @@ SConscript text/x-scons oxo SConscript.buildinfo text/x-scons oxo # Source code +# the following 3 test files are hand-made cplusplusfile.C text/x-c++src oxo cfile.c text/x-csrc oxo +no-extension-c-comment text/x-csrc x +test-gettext.c text/x-csrc # Common Lisp source code common-lisp.asd text/x-common-lisp oxo diff --git a/tests/mime-detection/no-extension-c-comment b/tests/mime-detection/no-extension-c-comment new file mode 100644 index 00000000..ee8cde08 --- /dev/null +++ b/tests/mime-detection/no-extension-c-comment @@ -0,0 +1 @@ +// Doc diff --git a/tests/mime-detection/simple-troff.mm b/tests/mime-detection/simple-troff.mm new file mode 100644 index 00000000..1b00a3a8 --- /dev/null +++ b/tests/mime-detection/simple-troff.mm @@ -0,0 +1,2 @@ +\" Example +.HU "macro" diff --git a/tests/mime-detection/simple-troff.tr b/tests/mime-detection/simple-troff.tr new file mode 100644 index 00000000..0ad4e921 --- /dev/null +++ b/tests/mime-detection/simple-troff.tr @@ -0,0 +1,4 @@ +.\" table +.TS +text example +.TE |