Unit Tests
- Added unit test to nibbler.t that illustrates one of the problems associated with bug #1006: Nibbler::getName read "entrée" and finds "entr".
This commit is contained in:
@@ -625,6 +625,10 @@ int main (int argc, char** argv)
|
|||||||
t.ok (n.skip ('9'), " '' skip 9 -> ok");
|
t.ok (n.skip ('9'), " '' skip 9 -> ok");
|
||||||
t.ok (n.depleted (), "depleted");
|
t.ok (n.depleted (), "depleted");
|
||||||
|
|
||||||
|
n = Nibbler ("entrée");
|
||||||
|
t.ok (n.getName (s), "'entrée' -> ok");
|
||||||
|
t.is (s, "entrée", "'entrée' -> 'entrée'");
|
||||||
|
|
||||||
// bool getWord (std::string&);
|
// bool getWord (std::string&);
|
||||||
t.diag ("Nibbler::getWord");
|
t.diag ("Nibbler::getWord");
|
||||||
n = Nibbler ("one two th3ee");
|
n = Nibbler ("one two th3ee");
|
||||||
|
|||||||
Reference in New Issue
Block a user