diff options
| author | Stefan Kangas | 2020-10-23 16:29:46 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-10-23 16:29:46 +0200 |
| commit | 49bc8586b7abc8e1e36027ca5eec0d0488a27474 (patch) | |
| tree | dd3d9c8a4eb7e85205ee7565d01c91ca21ef79ec /test/src/syntax-resources | |
| parent | d21cdb6c056453d4e4ef8a3a1f27d8bc203c09ea (diff) | |
| download | emacs-49bc8586b7abc8e1e36027ca5eec0d0488a27474.tar.gz emacs-49bc8586b7abc8e1e36027ca5eec0d0488a27474.zip | |
Move some test data to follow our conventions
* test/data/emacs-module/mod-test.c: Move from here...
* test/src/emacs-module-resources/mod-test.c: ...to here.
* test/src/emacs-module-tests.el (ert-x): Require.
(mod-test-file, module/describe-function-1):
* test/Makefile.in (test_module_dir): Adjust for move.
* test/data/files-bug18141.el.gz: Move from here...
* test/lisp/files-resources/files-bug18141.el.gz: ... to here.
* test/lisp/files-tests.el (ert-x): Require.
(files-test-bug-18141-file): Use ert-resource-file.
* test/data/mailcap/mime.types: Move from here...
* test/lisp/net/mailcap-resources/mime.types: ...to here.
* test/lisp/net/mailcap-tests.el (ert-x): Require.
(mailcap-tests-path): Use ert-resource-file.
* test/data/somelib.el:
* test/data/somelib2.el: Move from here...
* test/src/lread-resources/somelib.el:
* test/src/lread-resources/somelib2.el: ...to here.
* test/src/lread-tests.el (ert, ert-x): Require.
(lread-test-bug26837): Use ert-resource-directory.
* test/data/syntax-comments.txt: Move from here....
* test/src/syntax-resources/syntax-comments.txt: ...to here.
* test/src/syntax-tests.el (ert-x): Require.
(syntax-comments, syntax-br-comments, syntax-pps-comments):
Use ert-resource-file.
* test/data/xref/file1.txt:
* test/data/xref/file2.txt: Move from here...
* test/lisp/progmodes/xref-resources/file1.txt:
* test/lisp/progmodes/xref-resources/file2.txt: ...to here.
* test/lisp/progmodes/xref-tests.el (ert, ert-x): Require.
(xref-tests-data-dir): Use ert-resource-directory.
Diffstat (limited to 'test/src/syntax-resources')
| -rw-r--r-- | test/src/syntax-resources/syntax-comments.txt | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/test/src/syntax-resources/syntax-comments.txt b/test/src/syntax-resources/syntax-comments.txt new file mode 100644 index 00000000000..6f595e4d8dc --- /dev/null +++ b/test/src/syntax-resources/syntax-comments.txt | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | /* This file is a test file for tests of the comment handling in src/syntax.c. | ||
| 2 | This includes the testing of comments which figure in parse-partial-sexp | ||
| 3 | and scan-lists. */ | ||
| 4 | |||
| 5 | /* Straight C comments */ | ||
| 6 | 1/* comment */1 | ||
| 7 | 2/**/2 | ||
| 8 | 3// comment | ||
| 9 | 3 | ||
| 10 | 4// | ||
| 11 | 4 | ||
| 12 | 5/*/5 | ||
| 13 | 6*/6 | ||
| 14 | 7/* \*/7 | ||
| 15 | 8*/8 | ||
| 16 | 9/* \\*/9 | ||
| 17 | 10*/10 | ||
| 18 | 11// \ | ||
| 19 | 12 | ||
| 20 | 11 | ||
| 21 | 13// \\ | ||
| 22 | 14 | ||
| 23 | 13 | ||
| 24 | 15/* /*/15 | ||
| 25 | |||
| 26 | /* C Comments within lists */ | ||
| 27 | 59}59 | ||
| 28 | 50{ /*70 comment */71 }50 | ||
| 29 | 51{ /**/ }51 | ||
| 30 | 52{ //72 comment | ||
| 31 | 73}52 | ||
| 32 | 53{ // | ||
| 33 | }53 | ||
| 34 | 54{ //74 \ | ||
| 35 | }54 | ||
| 36 | 55{/* */}55 | ||
| 37 | 56{ /*76 \*/ }56 | ||
| 38 | 57*/77 | ||
| 39 | 58}58 | ||
| 40 | 60{ /*78 \\*/79}60 | ||
| 41 | |||
| 42 | |||
| 43 | /* Straight Pascal comments (not nested) */ | ||
| 44 | 20}20 | ||
| 45 | 21{ Comment }21 | ||
| 46 | 22{}22 | ||
| 47 | 23{ | ||
| 48 | }23 | ||
| 49 | 24{ | ||
| 50 | 25{25 | ||
| 51 | }24 | ||
| 52 | 26{ \}26 | ||
| 53 | |||
| 54 | |||
| 55 | /* Straight Lisp comments (not nested) */ | ||
| 56 | 30 | ||
| 57 | 30 | ||
| 58 | 31; Comment | ||
| 59 | 31 | ||
| 60 | 32;;;;;;;;; | ||
| 61 | 32 | ||
| 62 | 33; \ | ||
| 63 | 33 | ||
| 64 | |||
| 65 | Local Variables: | ||
| 66 | mode: fundamental | ||
| 67 | eval: (set-syntax-table (make-syntax-table)) | ||
| 68 | End: | ||