mirror of
https://codeberg.org/icewind/vdf-reader.git
synced 2026-06-03 10:04:08 +02:00
boxed arrays
This commit is contained in:
parent
778696590a
commit
d54e44b51d
7 changed files with 143 additions and 6 deletions
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
source: tests/serde.rs
|
||||
expression: result
|
||||
---
|
||||
Types(
|
||||
fixed_array: (1, 2, 3),
|
||||
flex_array: [
|
||||
1.0,
|
||||
2.2,
|
||||
],
|
||||
tuple: (true, 57),
|
||||
)
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
source: tests/serde.rs
|
||||
expression: out
|
||||
---
|
||||
vmt_parser::parse_serde
|
||||
|
||||
× Can't parse "3.1" as u8
|
||||
╭─[1:1]
|
||||
1 │ "Types" {
|
||||
2 │ fixed_array "[1 2 3.1]"
|
||||
· ─┬─
|
||||
· ╰── Expected a u8
|
||||
3 │ flex_array "[1.0 2.2]"
|
||||
╰────
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue