Chandler Carruth | 49589f0 | 2012-07-02 18:37:59 +0000 | [diff] [blame] | 1 | # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s |
Michael J. Spencer | 93210e8 | 2012-04-03 23:09:22 +0000 | [diff] [blame] | 2 | # |
Alex Lorenz | 9e31c0c | 2015-05-07 18:08:46 +0000 | [diff] [blame] | 3 | # FIXME: This test should actually fail. Yaml-bench should report an error |
| 4 | # that a tab is being used to indent a plain scalar at line 15. |
Michael J. Spencer | 93210e8 | 2012-04-03 23:09:22 +0000 | [diff] [blame] | 5 | # We don't currently reject tabs as indentation. |
Michael J. Spencer | 93210e8 | 2012-04-03 23:09:22 +0000 | [diff] [blame] | 6 | |
| 7 | # Tabs do's and don'ts: |
| 8 | # comment: |
| 9 | quoted: "Quoted " |
| 10 | block: | |
| 11 | void main() { |
| 12 | printf("Hello, world!\n"); |
| 13 | } |
| 14 | elsewhere: # separation |
| 15 | indentation, in plain scalar |
| 16 | |
Alex Lorenz | 9e31c0c | 2015-05-07 18:08:46 +0000 | [diff] [blame] | 17 | |
| 18 | # CHECK: !!str "Quoted\t\t" |