yyang42 / moulitest

This repository contains tests for several projects done at 42.
127 stars 37 forks source link

Test strcmp && strncmp #40

Closed kkuette closed 8 years ago

kkuette commented 8 years ago

Les tests strcmp && strncmp ne sont pas complet;

Il manque de verifier si s1 != '\0' || s2[i] != '\0'; A la moulinette mes deux fonctions ont fail a cause de cette verification, il faudrait ajouter les tests suivants : -strcmp("aaa", ""); -strncmp("aaa", ""); -strcmp("", "aaa"); -strncmp("", "aaa");

cordialement tdenion;

yyang42 commented 8 years ago

Fixed by https://github.com/yyang42/moulitest/pull/41 thanks to @marc3825