File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,9 +171,10 @@ static struct KbCmd endCMD() {
171171typedef void (* KeyPressHandler )(struct PS2Buf_t );
172172typedef int (* ExecFunc )(struct KbCmd , int * , KeyPressHandler );
173173
174- static void baseKeyHandler (struct PS2Buf_t kb ) {
175- vgaEditor (kb );
176- }
174+ // Commented out to avoid gcc complaining about it being unused
175+ // static void baseKeyHandler(struct PS2Buf_t kb) {
176+ // vgaEditor(kb);
177+ // }
177178
178179static int baseExec (struct KbCmd cmd , int * idx , KeyPressHandler kp ) {
179180 switch (cmd .cmd ) {
Original file line number Diff line number Diff line change @@ -94,12 +94,12 @@ int shiftTest() {
9494
9595// Word type testing
9696int wordTest () {
97- ASSERT (strncmp ("test" , buff , 5 ))
97+ ASSERT (strncmp ("test" , buff , 5 ) == 0 )
9898 return 0 ;
9999}
100100
101101int complexWordTest () {
102- ASSERT (strncmp ("This is a very Loong word$%@^@\\" , buff , 32 ))
102+ ASSERT (strncmp ("This is a very Loong word$%@^@\\" , buff , 32 ) == 0 )
103103 return 0 ;
104104}
105105
@@ -133,10 +133,14 @@ void test_main() {
133133 // Word type test
134134 funcCMD (wordTestStart ),
135135 typeWordCMD ("test" ),
136+ funcCMD (wordTest ),
136137 funcCMD (wordTestEnd ),
137138
139+ funcCMD (resetBuff ),
140+
138141 funcCMD (complexWordTestStart ),
139142 typeWordCMD ("This is a very Loong word$%@^@\\" ),
143+ funcCMD (complexWordTest ),
140144 funcCMD (complexWordTestEnd ),
141145
142146 endCMD (),
You can’t perform that action at this time.
0 commit comments