diff options
| author | Tina Müller <cpan2@tinita.de> | 2019-12-06 22:02:52 +0100 |
|---|---|---|
| committer | Tina Müller <cpan2@tinita.de> | 2019-12-06 22:38:10 +0100 |
| commit | dff1ce560c958516846e060d0e22e766009299e8 (patch) | |
| tree | c8025c3a220b7748e8e39a5f8e5ad44fb08a52b0 /tests/data/multi-constructor.code | |
| parent | eb459f842f690f809b649726f0a317909a92a29c (diff) | |
| download | pyyaml-git-perlpunk/default-multi.tar.gz | |
Allow add_multi_constructor with Noneperlpunk/default-multi
Loader.add_multi_constructor(None, myconstructor)
Also add test for add_multi_constructor('!', ...) etc.
See issue #317
Diffstat (limited to 'tests/data/multi-constructor.code')
| -rw-r--r-- | tests/data/multi-constructor.code | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/data/multi-constructor.code b/tests/data/multi-constructor.code new file mode 100644 index 0000000..590d852 --- /dev/null +++ b/tests/data/multi-constructor.code @@ -0,0 +1,4 @@ +[ + {'Tag1': ['a', 1, 'b', 2]}, + {'Tag2': ['a', 1, 'b', 2]}, +] |
