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:
Paul Beckingham 2012-06-10 15:54:39 -04:00
parent 180ff95649
commit e8309fcf49

View file

@ -625,6 +625,10 @@ int main (int argc, char** argv)
t.ok (n.skip ('9'), " '' skip 9 -> ok");
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&);
t.diag ("Nibbler::getWord");
n = Nibbler ("one two th3ee");