Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
85:87bc28b151d8
Parent:
82:3211b31e9421
--- a/Menu/Menu_test.h	Tue May 26 14:39:45 2020 +0000
+++ b/Menu/Menu_test.h	Tue May 26 19:38:48 2020 +0000
@@ -2,19 +2,19 @@
 #define MENU_TEST_H
 
 /** Menu Test
- * @brief Test the differnt Menu functions
+ * @brief Test the different Menu functions
  * @author Benjamin Evans, University of Leeds
  * @date May 2020
  * @return true if test are passed 
  */
 bool menu_select_part_test(MenuParts expected_menu_part, bool pressed) {
-    // Objects reqired for test
+    // Objects required for test
     Menu menu;
     
     // Initialise the menu
     menu.init();
     
-    if(pressed) {
+    if (pressed) {
         printf("Expected menu part play :  ");
     }else{
         printf("Expected menu part main menu :  ");
@@ -35,7 +35,7 @@
 }
 
 bool menu_scroll_test(Direction d_,MenuParts expected_menu_part) {
-    // Objects reqired for test
+    // Objects required for test
     Menu menu;
     
     // Initialise the menu
@@ -63,7 +63,7 @@
 
 bool menu_draw_part_test(int expected_pixel_status, 
 int expected_postion_x, int expected_postion_y) {
-    // Objects reqired for test
+    // Objects required for test
     Menu menu;
     N5110 lcd;
     
@@ -80,7 +80,7 @@
     int actual_pixel_status = lcd.getPixel(expected_postion_x, 
     expected_postion_y);
     
-    // Checks if pixel is drawn and therefor testing it hasnt gone of screen
+    // Checks if pixel is drawn and therefor testing it hasn’t gone of screen
     if (actual_pixel_status == expected_pixel_status) {
         printf ( "Passed!\n");
         return true;
@@ -91,4 +91,4 @@
     }
 }
 
-#endif
\ No newline at end of file
+#endif