Class Algo7Test

java.lang.Object
objective.common_objective.Algo7Test

public class Algo7Test extends Object
class that test the seventh algorithm, two groups of four cards of the same color: cards of two groups must be of the same color
  • Constructor Details

    • Algo7Test

      public Algo7Test()
  • Method Details

    • setUp

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

      public void algo7_test1_F()

      Two groups of four cards with different colors

      testing library:

      matrix
      PPGGY
      PP   Y   
      CCYBB
      PY   PP
      PGGCC
      PGGPP
    • algo7_test2_F_3x3

      public void algo7_test2_F_3x3()

      One group of six cards with the same color

      testing library:

      matrix
      PPPGY
      PPPY   
      CCYBB
      PY   PP
      PGGCC
      PGGPP
    • algo7_test3_T_3x3_same_colors

      public void algo7_test3_T_3x3_same_colors()

      Two group of six cards with the same color

      testing library:

      matrix
      PPPGY
      PPPY   
      CCYBB
      PY   PP
      PGGPP
      PGGPP
    • algo7_test4_only_one_square

      public void algo7_test4_only_one_square()

      One group of four cards with the same color

      testing library:

      matrix
      PPGGY
      PP   Y   
      CCYBB
      PY   PP
      PGGCC
      PPGPP
    • algo7_test5_strangeshape

      public void algo7_test5_strangeshape()

      Two group of six cards with the same color (corner case)

      testing library:

      matrix
                     
                     
                     
      PPGPP
      PPGPP
      PPGPP
    • algo7_test6_strangeshape2

      public void algo7_test6_strangeshape2()

      Two group of six cards with the same color (corner case)

      testing library:

      matrix
                     
                     
                     
      PG   PP
      PP   PP
      PP   PP
    • algo7_test7_strangeshape3

      public void algo7_test7_strangeshape3()

      Two group of six cards with the same color (corner case)

      testing library:

      matrix
                     
                     
                     
      PGGPP
      PPGPP
      PPGPP