| 1 | struct StructFieldAttrQuotes { |
| 2 | id1 string @[sql: "id"] |
| 3 | id2 string @[sql: 'id'] |
| 4 | id3 string @[sql: id] |
| 5 | } |
| 6 | |
| 7 | fn test_comptime_struct_field_attrs_keep_quotes() { |
| 8 | mut attrs := []string{} |
| 9 | $for field in StructFieldAttrQuotes.fields { |
| 10 | attrs << field.attrs[0] |
| 11 | } |
| 12 | assert attrs == ['sql: "id"', "sql: 'id'", 'sql: id'] |
| 13 | } |
| 14 |