| 1 | # Node profuse mode tests - comparing -n and -N flags |
| 2 | |
| 3 | - name: Plain scalar |
| 4 | text: | |
| 5 | hello |
| 6 | node: | |
| 7 | plain: hello |
| 8 | NODE: | |
| 9 | kind: Document |
| 10 | content: |
| 11 | - kind: Scalar |
| 12 | style: Plain |
| 13 | tag: '!!str' |
| 14 | text: hello |
| 15 | |
| 16 | - name: Double quoted scalar |
| 17 | text: | |
| 18 | "hello" |
| 19 | node: | |
| 20 | double: hello |
| 21 | NODE: | |
| 22 | kind: Document |
| 23 | content: |
| 24 | - kind: Scalar |
| 25 | style: Double |
| 26 | tag: '!!str' |
| 27 | text: hello |
| 28 | |
| 29 | - name: Integer scalar |
| 30 | text: | |
| 31 | 42 |
| 32 | node: | |
| 33 | plain: '42' |
| 34 | NODE: | |
| 35 | kind: Document |
| 36 | content: |
| 37 | - kind: Scalar |
| 38 | style: Plain |
| 39 | tag: '!!int' |
| 40 | text: '42' |
| 41 | |
| 42 | - name: Explicit tag |
| 43 | text: | |
| 44 | !!str 42 |
| 45 | node: | |
| 46 | plain: '42' |
| 47 | NODE: | |
| 48 | kind: Document |
| 49 | content: |
| 50 | - kind: Scalar |
| 51 | style: Plain |
| 52 | tag: '!!str' |
| 53 | text: '42' |
| 54 | |
| 55 | - name: Mapping with plain scalars |
| 56 | text: | |
| 57 | key: value |
| 58 | node: | |
| 59 | mapping: |
| 60 | - plain: key |
| 61 | - plain: value |
| 62 | NODE: | |
| 63 | kind: Document |
| 64 | content: |
| 65 | - kind: Mapping |
| 66 | style: Plain |
| 67 | tag: '!!map' |
| 68 | content: |
| 69 | - kind: Scalar |
| 70 | style: Plain |
| 71 | tag: '!!str' |
| 72 | text: key |
| 73 | - kind: Scalar |
| 74 | style: Plain |
| 75 | tag: '!!str' |
| 76 | text: value |