aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/spec 1.1/spec-02-27.yaml
blob: 5e23800d973d1149c10dc07845eae89464de61a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
%YAML 1.1
---
- name: spec-02-27
  tree: |
    +STR
    +DOC ---
    +MAP <tag:clarkevans.com,2002:invoice>
    =VAL :invoice
    =VAL :34843
    =VAL :date
    =VAL :2001-01-23
    =VAL :bill-to
    +MAP &id001
    =VAL :given
    =VAL :Chris
    =VAL :family
    =VAL :Dumars
    =VAL :address
    +MAP
    =VAL :lines
    =VAL |458 Walkman Dr.\nSuite #292\n
    =VAL :city
    =VAL :Royal Oak
    =VAL :state
    =VAL :MI
    =VAL :postal
    =VAL :48046
    -MAP
    -MAP
    =VAL :ship-to
    =ALI *id001
    =VAL :product
    +SEQ
    +MAP
    =VAL :sku
    =VAL :BL394D
    =VAL :quantity
    =VAL :4
    =VAL :description
    =VAL :Basketball
    =VAL :price
    =VAL :450.00
    -MAP
    +MAP
    =VAL :sku
    =VAL :BL4438H
    =VAL :quantity
    =VAL :1
    =VAL :description
    =VAL :Super Hoop
    =VAL :price
    =VAL :2392.00
    -MAP
    -SEQ
    =VAL :tax
    =VAL :251.42
    =VAL :total
    =VAL :4443.52
    =VAL :comments
    =VAL :Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338.
    -MAP
    -DOC
    -STR
  yaml: |
    --- !<tag:clarkevans.com,2002:invoice>
    invoice: 34843
    date   : 2001-01-23
    bill-to: &id001
        given  : Chris
        family : Dumars
        address:
            lines: |
                458 Walkman Dr.
                Suite #292
            city    : Royal Oak
            state   : MI
            postal  : 48046
    ship-to: *id001
    product:
        - sku         : BL394D
          quantity    : 4
          description : Basketball
          price       : 450.00
        - sku         : BL4438H
          quantity    : 1
          description : Super Hoop
          price       : 2392.00
    tax  : 251.42
    total: 4443.52
    comments:
        Late afternoon is best.
        Backup contact is Nancy
        Billsmer @ 338-4338.