From fc9f9980b83ac475d5fb6e6b79dc552ae9c6ce68 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 16 Oct 2011 11:19:33 -0400 Subject: [PATCH] Unit Tests - Added more word-boundary tests, even though they are broken on OSX. I don't think there is anythign we can do about this. --- test/rx.t.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/rx.t.cpp b/test/rx.t.cpp index 54ecf48fe..0984426a6 100644 --- a/test/rx.t.cpp +++ b/test/rx.t.cpp @@ -87,9 +87,15 @@ int main (int argc, char** argv) ut.ok (r9.match (start, end, text), "e there are matches"); ut.is (start.size (), (size_t) 6, "e == 6 matches"); - RX r10 ("\\bthe\\b"); + RX r10 ("\\bthe"); text = "this is the end."; - ut.ok (r10.match (text), text + " =~ /\\bthe\\b/"); + ut.ok (r10.match (text), text + " =~ /\\bthe/"); + + RX r11 ("the\\b"); + ut.ok (r11.match (text), text + " =~ /the\\b/"); + + RX r12 ("\\bthe\\b"); + ut.ok (r12.match (text), text + " =~ /\\bthe\\b/"); return 0; }