xref: /illumos-gate/usr/src/test/libc-tests/tests/regex/data/bug16127.dat (revision 0a1985fd5d819434967276b189f6f06494028e2c)
1*0a1985fdSBill SommerfeldNOTE test cases for illumos bug 16127
2*0a1985fdSBill Sommerfeld#
3*0a1985fdSBill Sommerfeld# This involved an erroneously implemented optimization which reduces
4*0a1985fdSBill Sommerfeld# single-element sets to an exact match with a single codepoint.
5*0a1985fdSBill Sommerfeld# Match sets record small-codepoint characters in a bitmap and large-codepoint
6*0a1985fdSBill Sommerfeld# characters in an array; the optimization would falsely trigger if either
7*0a1985fdSBill Sommerfeld# the bitmap or the array was a singleton, ignoring the members of the other
8*0a1985fdSBill Sommerfeld# side of the set.
9*0a1985fdSBill Sommerfeld#
10*0a1985fdSBill Sommerfeld# To exercise this, we construct sets which have one member of one side and
11*0a1985fdSBill Sommerfeld# one or more of the other, and verify that all members can be found.
12*0a1985fdSBill Sommerfeld
13*0a1985fdSBill Sommerfeld{C	C.UTF-8
14*0a1985fdSBill SommerfeldB	[aà]	a	(0,1)
15*0a1985fdSBill SommerfeldB	[aà]	à	(0,2)
16*0a1985fdSBill SommerfeldB	[aàá]	a	(0,1)
17*0a1985fdSBill SommerfeldB	[aàá]	à	(0,2)
18*0a1985fdSBill SommerfeldB	[aàá]	á	(0,2)
19*0a1985fdSBill SommerfeldB	[abà]	à	(0,2)
20*0a1985fdSBill SommerfeldB	[abà]	a	(0,1)
21*0a1985fdSBill SommerfeldB	[abà]	b	(0,1)
22*0a1985fdSBill SommerfeldE	[aà]	a	(0,1)
23*0a1985fdSBill SommerfeldE	[aà]	à	(0,2)
24*0a1985fdSBill SommerfeldE	[aàá]	a	(0,1)
25*0a1985fdSBill SommerfeldE	[aàá]	à	(0,2)
26*0a1985fdSBill SommerfeldE	[aàá]	á	(0,2)
27*0a1985fdSBill SommerfeldE	[abà]	à	(0,2)
28*0a1985fdSBill SommerfeldE	[abà]	a	(0,1)
29*0a1985fdSBill SommerfeldE	[abà]	b	(0,1)
30*0a1985fdSBill Sommerfeld}
31