mirror of
https://codeberg.org/icewind/vdf-reader.git
synced 2026-06-04 02:24:08 +02:00
more test
This commit is contained in:
parent
63b3bdbefd
commit
bc68a8c3a1
3 changed files with 20 additions and 2 deletions
|
|
@ -54,6 +54,16 @@ enum Expected {
|
|||
#[serde(rename = "Servers")]
|
||||
servers: UserConfigDataServers,
|
||||
},
|
||||
Sprite {
|
||||
#[serde(rename = "$spriteorientation")]
|
||||
sprite_orientation: String,
|
||||
#[serde(rename = "$spriteorigin")]
|
||||
sprite_origin: [f32; 2],
|
||||
#[serde(rename = "$basetexture")]
|
||||
base_texture: String,
|
||||
#[serde(rename = "$no_fullbright")]
|
||||
no_full_bright: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
|
|
@ -173,6 +183,7 @@ struct GameList {
|
|||
#[test_case("tests/data/messy.vdf")]
|
||||
#[test_case("tests/data/DialogConfigOverlay_1280x720.vdf")]
|
||||
#[test_case("tests/data/serde_array_type.vdf")]
|
||||
#[test_case("tests/data/game_text.vmt")]
|
||||
#[test_case("tests/errors/unmatched.vdf")]
|
||||
#[test_case("tests/errors/concrete.vmt")]
|
||||
#[test_case("tests/errors/novalue.vdf")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue