mirror of
https://codeberg.org/icewind/vdf-reader.git
synced 2026-06-03 10:04:08 +02:00
fix sequence at end of group, support bare sequences
This commit is contained in:
parent
eeeb47560b
commit
fe7bc149d6
10 changed files with 110 additions and 22 deletions
|
|
@ -4,6 +4,7 @@ expression: result
|
|||
---
|
||||
{
|
||||
"Types": {
|
||||
"another_tuple": "8",
|
||||
"fixed_array": [
|
||||
"1",
|
||||
"2",
|
||||
|
|
@ -13,6 +14,7 @@ expression: result
|
|||
"1",
|
||||
"2.2",
|
||||
],
|
||||
"foo": "0",
|
||||
"single": "1.2",
|
||||
"single_int": "2",
|
||||
"triple": [
|
||||
|
|
|
|||
16
tests/snapshots/serde__tests__data__internal_tag.vdf.snap
Normal file
16
tests/snapshots/serde__tests__data__internal_tag.vdf.snap
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
source: tests/serde.rs
|
||||
expression: out
|
||||
---
|
||||
vmt_reader::unexpected_token
|
||||
|
||||
× invalid type: boolean `true`, expected u32
|
||||
╭─[6:9]
|
||||
5 │ }
|
||||
6 │ ╭─▶ data2 {
|
||||
7 │ │ kind Bar
|
||||
8 │ │ val1 1
|
||||
9 │ ├─▶ }
|
||||
· ╰──── invalid type: boolean `true`, expected u32
|
||||
10 │ }
|
||||
╰────
|
||||
|
|
@ -11,6 +11,5 @@ r#Resource/specificPanel.res(
|
|||
],
|
||||
windows_path: "C:\\test\\no newline",
|
||||
r#\\"$translucent": true,
|
||||
r#$envmaptint: 0.5,
|
||||
r#.5: 0.5,
|
||||
r#$envmaptint: (0.5, 0.5, 0.5),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -12,4 +12,5 @@ Types(
|
|||
single: 1.2,
|
||||
triple: (1.2, 1.3, 1.4),
|
||||
single_int: 2.0,
|
||||
another_tuple: (8, "foo", false),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue