From e8309fcf490365f9d9cd378ab628e5110422d5e2 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 10 Jun 2012 15:54:39 -0400 Subject: [PATCH] Unit Tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added unit test to nibbler.t that illustrates one of the problems associated with bug #1006: Nibbler::getName read "entrée" and finds "entr". --- test/nibbler.t.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/nibbler.t.cpp b/test/nibbler.t.cpp index 879efa7eb..983eec4a1 100644 --- a/test/nibbler.t.cpp +++ b/test/nibbler.t.cpp @@ -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");