Unverified Commit c644b94b authored by Merwane Bouri's avatar Merwane Bouri
Browse files

Test Von Neumann validé

parent a0e3e6d0
Pipeline #79271 canceled with stage
......@@ -20,9 +20,12 @@ void CellulutTests::test_VonNeumann(){
vonNeumannNeighborhoodRule voi(1);
Neighborhood v=voi.getNeighborhood(g,cellule);
unsigned int nb_voi=v.getNb(3);
unsigned int nb_voi2=v.getNb(5);
unsigned int nb_voi3=v.getNb(2);
unsigned int nb_voi4=v.getNb(8);
QCOMPARE(nb_voi,2);
QCOMPARE(nb_voi2,1);
QCOMPARE(nb_voi3,1);
QCOMPARE(nb_voi4,0);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment