Class Algo12Test

java.lang.Object
objective.common_objective.Algo12Test

public class Algo12Test extends Object
class that test the twelfth algorithm, five columns of increasing height or descending: starting from the first column left or right, each successive column it must be formed by an extra tile. Tiles can be of any type.
  • Constructor Details

    • Algo12Test

      public Algo12Test()
  • Method Details

    • setUp

      public void setUp()
      method executed before every test that create a new algorithm
    • algo12_test1_general_decrescent

      public void algo12_test1_general_decrescent()

      Five columns descending

      testing library:

      matrix
                     
      P            
      PP         
      PPP      
      PPPP   
      PPPPP
    • algo12_test2_general_F_decrescent

      public void algo12_test2_general_F_decrescent()

      Five columns descending: not decrease by one cards

      testing library:

      matrix
                     
      P            
      PP         
      PP         
      PPPP   
      PPPPP
    • algo12_test3_general_digdecrescent

      public void algo12_test3_general_digdecrescent()

      Five columns descending whit different colors

      testing library:

      matrix
      W            
      WP         
      PPW      
      PWPP   
      WPPPP
      PPPPP
    • algo12_test4_general_F_digdecrescent

      public void algo12_test4_general_F_digdecrescent()

      Five columns descending: not decrease correctly

      testing library:

      matrix
      WP         
      WP         
      PPW      
      PWPP   
      WPPPP
      PPPPP
    • algo12_test5_general_crescent

      public void algo12_test5_general_crescent()

      Five columns crescent with different colors

      testing library:

      matrix
                  W
               WB
            WWP
         WPPY
      WPPPP
      PPPPP
    • algo12_test6_general_F_crescent

      public void algo12_test6_general_F_crescent()

      Five columns crescent: grows wrongly

      testing library:

      matrix
                  W
               WB
         GWWP
         WPPY
      WPPPP
      PPPPP
    • algo12_test7_general_digcrescent

      public void algo12_test7_general_digcrescent()

      Five columns crescent from row 1 and skipping a column (False)

      testing library:

      matrix
                  P
               PB
            PWP
         PPPY
       PPPP
      PPPPP
    • algo12_test8_general_F_digcrescent

      public void algo12_test8_general_F_digcrescent()

      Five columns crescent from row 1 (False)

      testing library:

      matrix
         G      P
               PB
            PWP
         PPPY
      PPPPP
      PPPPP
    • algo12_test9_general_dicrescent2

      public void algo12_test9_general_dicrescent2()

      Five columns descending, ending in a zero-column (False)

      testing library:

      matrix
                     
                     
      B            
      WW         
      BPP      
      PPPP   
    • algo12_test10_general_dicrescent3

      public void algo12_test10_general_dicrescent3()

      Less than five columns

      testing library:

      matrix
                     
                     
                     
      W            
      BP         
      PPP