root/pysyck/trunk/sandbox/syck-parser/test_binary_bug.yml

Revision 7, 0.9 KB (checked in by xi, 7 years ago)

Implement syck.parse() and syck.load() (closes #8).
Add basic scalar types to the resolver (partially closes #9).

Line 
1---
2test1: !mytype |
3    data
4---
5-
6 !mytype |
7    data
8---
9 - !binary |
10               11111111111111111
11
12---
13test: Omap
14yaml: |
15   # Explicitly typed dictionary.
16   Bestiary: !omap |
17     - aardvark: African pig-like ant eater. Ugly.
18     - anteater: South-American ant eater. Two species.
19     - anaconda: South-American constrictor snake. Scary.
20     # Etc.
21ruby: |
22   {
23     'Bestiary' => YAML::Omap[
24       'aardvark', 'African pig-like ant eater. Ugly.',
25       'anteater', 'South-American ant eater. Two species.',
26       'anaconda', 'South-American constrictor snake. Scary.'
27     ]
28   }
29
30--- !test
31 - 1
32 - 2
33--- !test >
34  test
35---
36- !binary |
37 R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
38 OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
39 +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
40 AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
Note: See TracBrowser for help on using the browser.