aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-13 13:03:16 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-13 13:03:16 +0100
commitfebc33fd5272834b5290aeb9d8e3638aca886cda (patch)
treeeef550ec16e45682b96513e2bcc6e5f1c7cfa168
parent8be6056b2c84064d341ce3450a86685c9a4baac5 (diff)
downloadevtclib-febc33fd5272834b5290aeb9d8e3638aca886cda.tar.gz
evtclib-febc33fd5272834b5290aeb9d8e3638aca886cda.tar.bz2
evtclib-febc33fd5272834b5290aeb9d8e3638aca886cda.zip
add tests for Trio parsing
-rw-r--r--src/gamedata.rs12
-rw-r--r--tests/logs/trio-20210501.zevtcbin0 -> 3401163 bytes
-rw-r--r--tests/parsing.rs18
3 files changed, 30 insertions, 0 deletions
diff --git a/src/gamedata.rs b/src/gamedata.rs
index dc035b2..06d3803 100644
--- a/src/gamedata.rs
+++ b/src/gamedata.rs
@@ -779,6 +779,12 @@ mod tests {
("sloth", Slothasor),
("slothasor", Slothasor),
("Slothasor", Slothasor),
+ ("trio", BanditTrio),
+ ("bandit trio", BanditTrio),
+ ("Trio", BanditTrio),
+ ("berg", BanditTrio),
+ ("zane", BanditTrio),
+ ("narella", BanditTrio),
("matthias", Matthias),
("Matthias", Matthias),
("kc", KeepConstruct),
@@ -892,6 +898,12 @@ mod tests {
("sloth", Slothasor),
("slothasor", Slothasor),
("Slothasor", Slothasor),
+ ("berg", Berg),
+ ("Berg", Berg),
+ ("zane", Zane),
+ ("Zane", Zane),
+ ("narella", Narella),
+ ("Narella", Narella),
("matthias", Matthias),
("Matthias", Matthias),
("kc", KeepConstruct),
diff --git a/tests/logs/trio-20210501.zevtc b/tests/logs/trio-20210501.zevtc
new file mode 100644
index 0000000..1cfee9c
--- /dev/null
+++ b/tests/logs/trio-20210501.zevtc
Binary files differ
diff --git a/tests/parsing.rs b/tests/parsing.rs
index 49e6fe9..415c3e6 100644
--- a/tests/parsing.rs
+++ b/tests/parsing.rs
@@ -115,6 +115,24 @@ test! {
}
test! {
+ name: parse_bandit_trio,
+ log: "logs/trio-20210501.zevtc",
+ boss: Encounter::BanditTrio,
+ players: &[
+ (2, ":Dunje.4863", "Pallida Howhite", Warrior, Some(Berserker)),
+ (2, ":Straimer.1093", "Deepfreeze Myself", Elementalist, Some(Weaver)),
+ (2, ":Alninio.5964", "Daedhur", Necromancer, Some(Reaper)),
+ (2, ":Luigi.8076", "Phantasmal Ficus", Mesmer, Some(Chronomancer)),
+ (2, ":Subi.8014", "Juvenile Subi", Ranger, Some(Druid)),
+ (3, ":xyoz.6710", "Xaphy", Engineer, Some(Holosmith)),
+ (3, ":Ashe.2473", "Dust Of Stance", Revenant, Some(Renegade)),
+ (3, ":neko.9741", "Cat Of Jormag", Engineer, Some(Holosmith)),
+ (3, ":Snake.9125", "Matis Dorei", Guardian, Some(Firebrand)),
+ (3, ":eupneo.1036", "Tormented Flame", Revenant, Some(Renegade)),
+ ],
+}
+
+test! {
name: parse_matthias,
log: "logs/matthias-20200421.zevtc",
boss: Encounter::Matthias,