#NEWLINE# def test_process( self ) : #NEWLINE# #INDENT# game_state = GameState ( 0 ) #NEWLINE# before_s_t = np . array ( game_state . s_t ) #NEWLINE# for i in range ( 1000 ) : #NEWLINE# #INDENT# bef0 = bef0 . s_t [ : , : , 0 ] #NEWLINE# bef1 = game_state . s_t [ : , : , 1 ] #NEWLINE# bef2 = game_state . s_t [ : , : , 2 ] #NEWLINE# game_state . process ( 1 ) #NEWLINE# game_state . update ( ) #NEWLINE# aft1 = game_state . s_t [ : , : , 1 ] #NEWLINE# aft2 = game_state . s_t [ : , : , 2 ] #NEWLINE# aft3 = game_state . s_t [ : , : , 3 ] #NEWLINE# self . assertTrue ( ( bef0 . flatten ( ) == aft1 . flatten ( ) ) . all ( ) ) #NEWLINE# self . assertTrue ( ( bef1 . flatten ( ) == aft2 . flatten ( ) ) . all ( ) ) #NEWLINE# self . assertTrue ( ( bef2 . flatten ( ) == aft3 . flatten ( ) ) . all ( ) ) #NEWLINE# self . assertTrue ( np . less_equal ( bef0 , 1.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . less_equal ( bef1 , 1.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . less_equal ( bef2 , 1.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . greater_equal ( bef0 , 0.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . greater_equal ( bef1 , 0.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . greater_equal ( bef2 , 0.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . less_equal ( aft1 , 1.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . less_equal ( aft2 , 1.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . less_equal ( aft3 , 1.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . greater_equal ( aft1 , 0.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . greater_equal ( aft2 , 0.0 ) . all ( ) ) #NEWLINE# self . assertTrue ( np . greater_equal ( aft3 , 0.0 ) . all ( ) )