Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/regex Add the failed forced association tests.
details: https://anonhg.NetBSD.org/src/rev/c91f5a10d9e6
branches: trunk
changeset: 771033:c91f5a10d9e6
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 06 16:08:28 2011 +0000
description:
Add the failed forced association tests.
diffstat:
tests/lib/libc/regex/att.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r f2c0d9ea7f52 -r c91f5a10d9e6 tests/lib/libc/regex/att.c
--- a/tests/lib/libc/regex/att.c Sun Nov 06 16:02:08 2011 +0000
+++ b/tests/lib/libc/regex/att.c Sun Nov 06 16:08:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: att.c,v 1.3 2011/11/06 16:02:08 christos Exp $ */
+/* $NetBSD: att.c,v 1.4 2011/11/06 16:08:28 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: att.c,v 1.3 2011/11/06 16:02:08 christos Exp $");
+__RCSID("$NetBSD: att.c,v 1.4 2011/11/06 16:08:28 christos Exp $");
#include <stdio.h>
#include <regex.h>
@@ -115,6 +115,12 @@
{ "(a*)*(x)", "axa" }, // nullsubexpression.dat
{ "(a*)+(x)", "ax" }, // nullsubexpression.dat
{ "(a*)+(x)", "axa" }, // nullsubexpression.dat
+ { "((a|ab)(c|bcd))(d*)", "abcd" }, // forcedassoc.dat
+ { "((a|ab)(bcd|c))(d*)", "abcd" }, // forcedassoc.dat
+ { "((ab|a)(c|bcd))(d*)", "abcd" }, // forcedassoc.dat
+ { "((ab|a)(bcd|c))(d*)", "abcd" }, // forcedassoc.dat
+ { "((a*)(b|abc))(c*)", "abc" }, // forcedassoc.dat
+ { "((a*)(abc|b))(c*)", "abc" }, // forcedassoc.dat
#endif
};
Home |
Main Index |
Thread Index |
Old Index