File: YtsBlockMapping.yml

package info (click to toggle)
yecht 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, buster
  • size: 1,108 kB
  • sloc: java: 5,217; ruby: 3,595; yacc: 349; xml: 233; makefile: 10
file content (78 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (8)
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
--- 
test: One Element Mapping 
brief: | 
    A mapping with one key/value pair 
yaml: | 
    --- 
    foo: bar 
perl: | 
    {foo => 'bar'} 
ruby: |
    { 'foo' => 'bar' }
 
--- 
test: Multi Element Mapping 
brief: | 
    More than one key/value pair 
yaml: | 
    --- 
    red: baron 
    white: walls 
    blue: berries 
perl: | 
    { 
     red => 'baron', 
     white => 'walls', 
     blue => 'berries', 
    } 
ruby: | 
    { 
     'red' => 'baron', 
     'white' => 'walls', 
     'blue' => 'berries', 
    } 
 
--- 
test: Values aligned 
brief: | 
    Often times human editors of documents will align the values even 
    though YAML emitters generally don't. 
yaml: | 
    --- 
    red:   baron 
    white: walls 
    blue:  berries 
perl: | 
    { 
     red => 'baron', 
     white => 'walls', 
     blue => 'berries', 
    } 
ruby: | 
    { 
     'red' => 'baron', 
     'white' => 'walls', 
     'blue' => 'berries', 
    } 
 
--- 
test: Colons aligned 
brief: | 
    Spaces can come before the ': ' key/value separator. 
yaml: | 
    --- 
    red   : baron 
    white : walls 
    blue  : berries 
perl: | 
    { 
     red => 'baron', 
     white => 'walls', 
     blue => 'berries', 
    } 
ruby: | 
    { 
     'red' => 'baron', 
     'white' => 'walls', 
     'blue' => 'berries', 
    }