diff options
| author | Aurélien Aptel | 2014-12-02 16:17:10 -0500 |
|---|---|---|
| committer | Ted Zlatanov | 2014-12-04 19:54:16 -0500 |
| commit | ae901ddbfff04e8b1b0d63c452a6ca3f4c81fb17 (patch) | |
| tree | b806504944c633be45255321d1203bbcc2504781 /modules/yaml/tests | |
| parent | dd601050e7db69f322eea09d99751d8e6363b153 (diff) | |
| download | emacs-old-branches/dynamic-modules-rc2.tar.gz emacs-old-branches/dynamic-modules-rc2.zip | |
Add external modulesold-branches/dynamic-modules-rc2
* configure.ac: Add libtool support and module Makefiles.
* src/Makefile.in: Support libtool.
* src/alloc.c (mark_object): Mark the doc field of Lisp_Subr as object.
* src/doc.c (doc_is_from_module_p, get_doc_string, reread_doc_file)
(store_function_docstring, build_file_p, Fsnarf_documentation):
Support docstrings for external modules.
* src/lisp.h: Make the doc field of Lisp_Subr a Lisp_Object.
* src/lread.c (Fget_load_suffixes, Fload_module, string_suffixes_p)
(string_suffix_p, Fload, intern_c_string_1, defsubr)
(syms_of_lread): Add loading of external modules and the
docstrings of their functions.
* modules/curl: New module.
* modules/elisp: New module.
* modules/fmod: New module.
* modules/opaque: New module.
* modules/yaml: New module.
Diffstat (limited to 'modules/yaml/tests')
| -rw-r--r-- | modules/yaml/tests/alias.yaml | 14 | ||||
| -rw-r--r-- | modules/yaml/tests/map.yaml | 4 | ||||
| -rw-r--r-- | modules/yaml/tests/multi.yaml | 16 | ||||
| -rw-r--r-- | modules/yaml/tests/nest.yaml | 12 | ||||
| -rw-r--r-- | modules/yaml/tests/scal.yaml | 2 | ||||
| -rw-r--r-- | modules/yaml/tests/seq.yaml | 5 |
6 files changed, 53 insertions, 0 deletions
diff --git a/modules/yaml/tests/alias.yaml b/modules/yaml/tests/alias.yaml new file mode 100644 index 00000000000..c3dade3a011 --- /dev/null +++ b/modules/yaml/tests/alias.yaml | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | --- | ||
| 2 | invoice: 34843 | ||
| 3 | date : 2001-01-23 | ||
| 4 | bill-to: &id001 | ||
| 5 | given : Chris | ||
| 6 | family : Dumars | ||
| 7 | address: | ||
| 8 | lines: | | ||
| 9 | 458 Walkman Dr. | ||
| 10 | Suite #292 | ||
| 11 | city : Royal Oak | ||
| 12 | state : MI | ||
| 13 | postal : 48046 | ||
| 14 | ship-to: *id001 | ||
diff --git a/modules/yaml/tests/map.yaml b/modules/yaml/tests/map.yaml new file mode 100644 index 00000000000..4021d74248a --- /dev/null +++ b/modules/yaml/tests/map.yaml | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | --- | ||
| 2 | a: 1 | ||
| 3 | b: 2 | ||
| 4 | c: 3 | ||
diff --git a/modules/yaml/tests/multi.yaml b/modules/yaml/tests/multi.yaml new file mode 100644 index 00000000000..1eb61f7df3e --- /dev/null +++ b/modules/yaml/tests/multi.yaml | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | --- | ||
| 2 | a: 1 | ||
| 3 | b: | ||
| 4 | - 1 | ||
| 5 | - 2 | ||
| 6 | - 3 | ||
| 7 | --- | ||
| 8 | foo: | ||
| 9 | bar: 1 | ||
| 10 | baz: 2 | ||
| 11 | bad: 3 | ||
| 12 | zob: | ||
| 13 | - 42 | ||
| 14 | - 43 | ||
| 15 | --- | ||
| 16 | abc | ||
diff --git a/modules/yaml/tests/nest.yaml b/modules/yaml/tests/nest.yaml new file mode 100644 index 00000000000..8a453dfc771 --- /dev/null +++ b/modules/yaml/tests/nest.yaml | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | --- | ||
| 2 | product: | ||
| 3 | - sku : BL394D | ||
| 4 | quantity : 4 | ||
| 5 | description : Basketball | ||
| 6 | price : 450.00 | ||
| 7 | - sku : BL4438H | ||
| 8 | quantity : 1 | ||
| 9 | description : Super Hoop | ||
| 10 | price : 2392.00 | ||
| 11 | tax : 251.42 | ||
| 12 | total: 4443.52 | ||
diff --git a/modules/yaml/tests/scal.yaml b/modules/yaml/tests/scal.yaml new file mode 100644 index 00000000000..aecd198b598 --- /dev/null +++ b/modules/yaml/tests/scal.yaml | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | --- | ||
| 2 | abc | ||
diff --git a/modules/yaml/tests/seq.yaml b/modules/yaml/tests/seq.yaml new file mode 100644 index 00000000000..15b6a9e3dc0 --- /dev/null +++ b/modules/yaml/tests/seq.yaml | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | --- | ||
| 2 | - abc | ||
| 3 | - def | ||
| 4 | - ghi | ||
| 5 | - jkl | ||