| 1 | --- |
| 2 | # Comprehensive YAML string styles with UTF-8 |
| 3 | # Tests all YAML string quoting styles and UTF-8 combinations |
| 4 | |
| 5 | pattern: "(?P<test_type>\\w+): (?P<data>.*)" |
| 6 | |
| 7 | inject: |
| 8 | # Plain scalars with UTF-8 |
| 9 | - key: PLAIN_UTF8 |
| 10 | value: Café naïve résumé piñata übung |
| 11 | |
| 12 | # Double quoted strings with UTF-8 |
| 13 | - key: DOUBLE_QUOTED_UTF8 |
| 14 | value: "Japanese: こんにちは Arabic: مرحبا Russian: Привет" |
| 15 | |
| 16 | # Single quoted strings with UTF-8 |
| 17 | - key: SINGLE_QUOTED_UTF8 |
| 18 | value: 'Chinese: 你好 Korean: 안녕하세요 Thai: สวัสดี' |
| 19 | |
| 20 | # Literal block scalar with UTF-8 |
| 21 | - key: LITERAL_UTF8 |
| 22 | value: | |
| 23 | Line 1: Émojis 🎉 🚀 ✅ ❌ 🌟 |
| 24 | Line 2: Greek: αβγδε Hebrew: שלום |
| 25 | Line 3: Math: ∑∏∆√∞≠≤≥±×÷ |
| 26 | |
| 27 | # Folded block scalar with UTF-8 |
| 28 | - key: FOLDED_UTF8 |
| 29 | value: > |
| 30 | This line contains émojis 🎯 and |
| 31 | special characters like café naïve |
| 32 | which should fold together properly. |
| 33 | |
| 34 | # Mixed quotes and escapes |
| 35 | - key: MIXED_QUOTES |
| 36 | value: "Single 'quotes' and \"escaped doubles\" with café" |
| 37 | |
| 38 | # Control characters and escapes |
| 39 | - key: CONTROL_CHARS |
| 40 | value: "Tab:\t Newline:\n Carriage:\r Backslash:\\ Quote:\"" |
| 41 | |
| 42 | # Unicode escapes |
| 43 | - key: UNICODE_ESCAPES |
| 44 | value: "Unicode: \u00E9 \u00FC \u00F1 \u2603" |
| 45 | |
| 46 | # Raw UTF-8 vs escaped |
| 47 | - key: RAW_UTF8 |
| 48 | value: "Direct: café vs Escaped: caf\u00E9" |
| 49 | |
| 50 | # Empty and whitespace variations |
| 51 | - key: EMPTY_STRING |
| 52 | value: "" |
| 53 | - key: SPACE_STRING |
| 54 | value: " " |
| 55 | - key: TAB_STRING |
| 56 | value: "\t" |
| 57 | - key: WHITESPACE_ONLY |
| 58 | value: " \t \n " |
| 59 | |
| 60 | # Long UTF-8 string |
| 61 | - key: LONG_UTF8 |
| 62 | value: "English, Español, Français, Deutsch, Italiano, Português, Русский, 中文, 日本語, 한국어, العربية, עברית, हिन्दी, বাংলা, తెలుగు, தமிழ், ไทย, Tiếng Việt" |
| 63 | |
| 64 | # Numbers as strings vs numbers |
| 65 | - key: STRING_NUMBER |
| 66 | value: "123" |
| 67 | - key: NUMBER_VALUE |
| 68 | value: 123 |
| 69 | - key: STRING_FLOAT |
| 70 | value: "123.45" |
| 71 | - key: FLOAT_VALUE |
| 72 | value: 123.45 |
| 73 | |
| 74 | # Boolean as strings vs booleans |
| 75 | - key: STRING_TRUE |
| 76 | value: "true" |
| 77 | - key: BOOL_TRUE |
| 78 | value: true |
| 79 | - key: STRING_FALSE |
| 80 | value: "false" |
| 81 | - key: BOOL_FALSE |
| 82 | value: false |
| 83 | |
| 84 | # Null variations |
| 85 | - key: STRING_NULL |
| 86 | value: "null" |
| 87 | - key: NULL_VALUE |
| 88 | value: null |
| 89 | - key: TILDE_NULL |
| 90 | value: ~ |
| 91 | |
| 92 | filename: |
| 93 | key: FILENAME |
| 94 | |
| 95 | rewrite: |
| 96 | - key: MESSAGE |
| 97 | value: 'Processed UTF-8: ${data}' |
| 98 | inject: yes |