Sfoglia il codice sorgente

examples/substring_test.c: fix typo

ambrop7 13 anni fa
parent
commit
fd098c64fd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/substring_test.c

+ 1 - 1
examples/substring_test.c

@@ -197,7 +197,7 @@ int main (int argc, char *argv[])
         size_t pos;
         int res = find_substring_reverse(text, strlen(text), word, strlen(word), table, &pos);
         ASSERT_FORCE(res)
-        ASSERT_FORCE(res == 1)
+        ASSERT_FORCE(pos == 1)
     }
     
     return 0;