Advertisement
Guest User

test123

a guest
Dec 2nd, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Eiffel 0.53 KB | None | 0 0
  1.     test_set_depth
  2.         note
  3.             testing:  "covers/{MINIMAX_AB_ENGINE}.set_max_depth"
  4.         local
  5.             l_minimax_engine : MINIMAX_ENGINE[STRING, TICTACTOE_STATE, TICTACTOE]
  6.             l_problem : TICTACTOE
  7.  
  8.         do
  9.             create l_problem.make
  10.             create l_minimax_engine.make_with_depth (l_problem, 10)
  11.  
  12. --          assert("Mensaje", l_minimax_engine.max_depth = 10)
  13.  
  14.             l_minimax_engine.set_max_depth (-5)
  15. --          print(l_minimax_engine.max_depth)
  16.  
  17.             assert("OK", l_minimax_engine.max_depth = -5)
  18. --          assert("OK", l_minimax_engine.max_depth /= -15)
  19.  
  20.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement