diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-03-08 00:35:52 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-03-08 00:37:15 +0100 |
commit | bd035c3d759bf468ef35e711cdde5e2ffab5d1c0 (patch) | |
tree | c87d5a51df8bcd7dd5ee1e75db28bdc6c90543d8 | |
parent | 0f77ce185466ffcd94fb0bc66225ebb115cda18d (diff) | |
download | evtclib-bd035c3d759bf468ef35e711cdde5e2ffab5d1c0.tar.gz evtclib-bd035c3d759bf468ef35e711cdde5e2ffab5d1c0.tar.bz2 evtclib-bd035c3d759bf468ef35e711cdde5e2ffab5d1c0.zip |
add logs for EoD elite spec parsing
Many thanks to xyoz & neko for providing me with suitable log files!
-rw-r--r-- | tests/eod_elite_specs.rs | 76 | ||||
-rw-r--r-- | tests/logs/eod-specs/Bladesworn-20220307.zevtc | bin | 0 -> 33681 bytes | |||
-rw-r--r-- | tests/logs/eod-specs/Untamed-20220307.zevtc | bin | 0 -> 56948 bytes | |||
-rw-r--r-- | tests/logs/eod-specs/Vindicator-20220307.zevtc | bin | 0 -> 37870 bytes | |||
-rw-r--r-- | tests/logs/eod-specs/Virtuoso-20220307.zevtc | bin | 0 -> 38675 bytes | |||
-rw-r--r-- | tests/logs/eod-specs/harbinger-specter-mechanist-20220307.zevtc | bin | 0 -> 878969 bytes | |||
-rw-r--r-- | tests/logs/eod-specs/willbender-catalyst-mechanist-20220307.zevtc | bin | 0 -> 261730 bytes |
7 files changed, 76 insertions, 0 deletions
diff --git a/tests/eod_elite_specs.rs b/tests/eod_elite_specs.rs new file mode 100644 index 0000000..ca5fdc5 --- /dev/null +++ b/tests/eod_elite_specs.rs @@ -0,0 +1,76 @@ +use evtclib::{Compression, EliteSpec, Profession}; + +macro_rules! test { + ($name:ident, $log:expr, $profession:expr, $elite:expr $(,)?) => { + #[test] + fn $name() { + let log = evtclib::process_file($log, Compression::Zip).unwrap(); + assert!(log + .players() + .any(|p| p.profession() == $profession && p.elite() == Some($elite))); + } + }; +} + +test!( + willbender, + "tests/logs/eod-specs/willbender-catalyst-mechanist-20220307.zevtc", + Profession::Guardian, + EliteSpec::Willbender, +); + +test!( + vindicator, + "tests/logs/eod-specs/Vindicator-20220307.zevtc", + Profession::Revenant, + EliteSpec::Vindicator, +); + +test!( + bladesworn, + "tests/logs/eod-specs/Bladesworn-20220307.zevtc", + Profession::Warrior, + EliteSpec::Bladesworn, +); + +test!( + mechanist, + "tests/logs/eod-specs/willbender-catalyst-mechanist-20220307.zevtc", + Profession::Engineer, + EliteSpec::Mechanist, +); + +test!( + untamed, + "tests/logs/eod-specs/Untamed-20220307.zevtc", + Profession::Ranger, + EliteSpec::Untamed, +); + +test!( + specter, + "tests/logs/eod-specs/harbinger-specter-mechanist-20220307.zevtc", + Profession::Thief, + EliteSpec::Specter, +); + +test!( + catalyst, + "tests/logs/eod-specs/willbender-catalyst-mechanist-20220307.zevtc", + Profession::Elementalist, + EliteSpec::Catalyst, +); + +test!( + virtuoso, + "tests/logs/eod-specs/Virtuoso-20220307.zevtc", + Profession::Mesmer, + EliteSpec::Virtuoso, +); + +test!( + harbinger, + "tests/logs/eod-specs/harbinger-specter-mechanist-20220307.zevtc", + Profession::Necromancer, + EliteSpec::Harbinger, +); diff --git a/tests/logs/eod-specs/Bladesworn-20220307.zevtc b/tests/logs/eod-specs/Bladesworn-20220307.zevtc Binary files differnew file mode 100644 index 0000000..67a1a59 --- /dev/null +++ b/tests/logs/eod-specs/Bladesworn-20220307.zevtc diff --git a/tests/logs/eod-specs/Untamed-20220307.zevtc b/tests/logs/eod-specs/Untamed-20220307.zevtc Binary files differnew file mode 100644 index 0000000..32aa1f0 --- /dev/null +++ b/tests/logs/eod-specs/Untamed-20220307.zevtc diff --git a/tests/logs/eod-specs/Vindicator-20220307.zevtc b/tests/logs/eod-specs/Vindicator-20220307.zevtc Binary files differnew file mode 100644 index 0000000..38dce9e --- /dev/null +++ b/tests/logs/eod-specs/Vindicator-20220307.zevtc diff --git a/tests/logs/eod-specs/Virtuoso-20220307.zevtc b/tests/logs/eod-specs/Virtuoso-20220307.zevtc Binary files differnew file mode 100644 index 0000000..0afaea4 --- /dev/null +++ b/tests/logs/eod-specs/Virtuoso-20220307.zevtc diff --git a/tests/logs/eod-specs/harbinger-specter-mechanist-20220307.zevtc b/tests/logs/eod-specs/harbinger-specter-mechanist-20220307.zevtc Binary files differnew file mode 100644 index 0000000..38a3333 --- /dev/null +++ b/tests/logs/eod-specs/harbinger-specter-mechanist-20220307.zevtc diff --git a/tests/logs/eod-specs/willbender-catalyst-mechanist-20220307.zevtc b/tests/logs/eod-specs/willbender-catalyst-mechanist-20220307.zevtc Binary files differnew file mode 100644 index 0000000..535a16b --- /dev/null +++ b/tests/logs/eod-specs/willbender-catalyst-mechanist-20220307.zevtc |