Skip to content
Snippets Groups Projects
Unverified Commit c644b94b authored by Merwane Bouri's avatar Merwane Bouri
Browse files

Test Von Neumann validé

parent a0e3e6d0
No related branches found
No related tags found
No related merge requests found
Pipeline #79271 canceled
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment