Terentyev / SmallWorld

Board game "Small world"
6 stars 2 forks source link

Тест Лены для берсерка #43

Closed Terentyev closed 12 years ago

Terentyev commented 12 years ago

Tests/91_Lena/test_15.in ( race Dwarves and special power Berserk ): 13: Request: {"sid":1,"action":"conquer","regionId":1} Expected: {"dice":1,"result":"ok"} Get: {"result":"ok"}

   Diff:
        /dice:{ vs UNDEF}
15: Request:  {"sid":1,"action":"conquer","regionId":2}
   Expected: {"dice":1,"result":"ok"}
   Get:      {"result":"ok"}

   Diff:
        /dice:{ vs UNDEF}
17: Request:  {"sid":1,"action":"conquer","regionId":3}
   Expected: {"dice":1,"result":"ok"}
   Get:      {"result":"ok"}

   Diff:
        /dice:{ vs UNDEF}
18: Request:  {"sid":1,"action":"throwDice","dice":1}
   Expected: {"result":"badStage"}
   Get:      {"dice":1,"result":"ok"}

   Diff:
        /result:{'badStage' vs 'ok'}
Terentyev commented 12 years ago

Кажется сомнительным возвращать кости во время захвата при активном берсерке. А вот последняя команда интересна: следует не позволять команду throwDice, если на руках нет фигурок