@@ -35,10 +35,10 @@ func Example() {
3535
3636 type mytype string
3737 var mystring mytype = "hello, world"
38- be .Match (t , `world` , mystring ) // good
39- be .Match (t , `World` , mystring ) // bad
40- be .Match (t , `^\W*$` , []byte ("\a \b \x00 \r \t " )) // good
41- be .Match (t , `^\W*$` , []byte ("\a \b o \ r\t " )) // bad
38+ be .Match (t , `world` , mystring ) // good
39+ be .Match (t , `World` , mystring ) // bad
40+ be .Match (t , `^\W*$` , []byte ("\a \b \x00 \r \t " )) // good
41+ be .NoMatch (t , `^\W*$` , []byte ("\a \b \x00 \ r\t " )) // bad
4242
4343 seq := strings .FieldsSeq ("1 2 3 4" )
4444 be .EqualLength (t , 4 , seq ) // good
@@ -55,8 +55,8 @@ func Example() {
5555 // got: <nil>
5656 // got errors.Is(<nil>, permission denied) == false
5757 // got errors.As((O_o), **fs.PathError) == false
58- // /World/ !~ "hello, world"
59- // /^\W*$/ ! ~ "\a\bo \r\t"
58+ // missing match: /World/ !~ "hello, world"
59+ // unexpected match: /^\W*$/ = ~ "\a\b\x00 \r\t"
6060 // want len(seq) == 1; got at least 2
6161 // want len(seq) >= 5; got 4
6262 // want len(seq) >= 4; got 3
0 commit comments