Support filtering by version in NetHack::NAOdash
[nethack-naodash.git] / t / NetHack-NAOdash.t
index 7b5019ac9c5986df597b41d0a4a816afb3974e6d..0b47ff037b70be4a92ec00115df600069be702ec 100644 (file)
@@ -3,7 +3,7 @@ use 5.014000;
 use strict;
 use warnings;
 
-use Test::More tests => 2;
+use Test::More tests => 4;
 
 BEGIN { use_ok 'NetHack::NAOdash' }
 
@@ -25,3 +25,33 @@ is_deeply naodash_xlog (@xlog), {
 
        checks => [qw/achieve_amulet achieve_ascended achieve_astral achieve_bell achieve_book achieve_candelabrum achieve_endgame achieve_gehennom achieve_invocation achieve_luckstone achieve_medusa achieve_sokoban combo_arc_dwa_law combo_bar_orc_cha combo_cav_gno_neu combo_hea_gno_neu combo_kni_hum_law combo_mon_hum_neu combo_pri_hum_law combo_pri_hum_neu combo_ran_elf_cha combo_rog_orc_cha combo_sam_hum_law combo_tou_hum_neu combo_val_dwa_law combo_wiz_elf_cha conduct_artiwishless conduct_atheist conduct_genocideless conduct_polypileless conduct_polyselfless conduct_vegetarian conduct_weaponless uconduct_boneless uconduct_survivor/]
 }, 'naodash_xlog';
+
+is_deeply naodash_xlog ({include_versions => ['3.6.0']}, @xlog), {
+       numbers => {
+               ascensions => 1,
+               games => 3,
+               maxconducts => 4,
+               maxhp => 397,
+               maxpoints => 2903014,
+               minrealtime => 86482,
+               minturns => 37729,
+               totalrealtime => 114994,
+       },
+
+       checks => [qw/achieve_amulet achieve_ascended achieve_astral achieve_bell achieve_book achieve_candelabrum achieve_endgame achieve_gehennom achieve_invocation achieve_luckstone achieve_medusa achieve_sokoban combo_pri_hum_law conduct_atheist conduct_genocideless conduct_polypileless conduct_polyselfless uconduct_survivor/]
+}, 'naodash_xlog';
+
+is_deeply naodash_xlog ({exclude_versions => ['3.6.0']}, @xlog), {
+       numbers => {
+               ascensions => 14,
+               games => 82,
+               maxconducts => 4,
+               maxhp => 422,
+               maxpoints => 3429164,
+               minrealtime => 43395,
+               minturns => 36028,
+               totalrealtime => 1368030,
+       },
+
+       checks => [qw/achieve_amulet achieve_ascended achieve_astral achieve_bell achieve_book achieve_candelabrum achieve_endgame achieve_gehennom achieve_invocation achieve_luckstone achieve_medusa achieve_sokoban combo_arc_dwa_law combo_bar_orc_cha combo_cav_gno_neu combo_hea_gno_neu combo_kni_hum_law combo_mon_hum_neu combo_pri_hum_neu combo_ran_elf_cha combo_rog_orc_cha combo_sam_hum_law combo_tou_hum_neu combo_val_dwa_law combo_wiz_elf_cha conduct_artiwishless conduct_genocideless conduct_polypileless conduct_polyselfless conduct_vegetarian conduct_weaponless uconduct_boneless uconduct_survivor/]
+}, 'naodash_xlog';
This page took 0.009917 seconds and 4 git commands to generate.