Class Algo5Test

java.lang.Object
objective.common_objective.Algo5Test

public class Algo5Test extends Object
class that test the fifth algorithm, four column have four element of the same color (different column can have different colors) cards
  • Constructor Details

    • Algo5Test

      public Algo5Test()
  • Method Details

    • setUp

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

      public void algo5_test1_T_general()

      Four columns with four element of the same color of cards

      testing library:

      matrix
      PPPPY
                     
      CCYBB
      CCGBB
      PP   CC
      GGGGP
    • algo5_test2_F

      public void algo5_test2_F()

      Four columns with four element with different colors of cards

      testing library:

      matrix
      PP   PY
                     
      CCYBB
      CCGBB
      GG   CC
      GGGGP
    • algo5_test3_4groupstrue

      public void algo5_test3_4groupstrue()

      Four columns with more than four element with the same color of cards

      testing library:

      matrix
      PP   PY
            Y      
      CBY   C
      BBYCC
      BBYCG
      GGGGG
    • algo5_test4_3groupsfalse

      public void algo5_test4_3groupsfalse()

      Threee columns with four element with the same color of cards

      testing library:

      matrix
      PP   PY
            Y      
      CBY   C
         BYCC
         BYCG
      GGGGG
    • algo5_test5_3groupsfalse2

      public void algo5_test5_3groupsfalse2()

      Three columns with more than four element with the same color of cards

      testing library:

      matrix
      BB   BB
            Y      
         BY   C
         BYCC
         BYCG
      GGGGG