X-Git-Url: http://git.hcoop.net/bpt/coccinelle.git/blobdiff_plain/993936c04d73e4c97d0dc0910dbbef5f2c684c15..7fe62b653dbe13c8fc74c58c3ca4b8af523c1637:/tests/regexp.cocci diff --git a/tests/regexp.cocci b/tests/regexp.cocci index 538e6bb..c74d507 100644 --- a/tests/regexp.cocci +++ b/tests/regexp.cocci @@ -9,7 +9,7 @@ t id; @contains@ type t; -identifier anyid.id ~= "foo"; +identifier anyid.id =~ "foo"; fresh identifier contains = id ##"_contains_foo"; @@ @@ -18,7 +18,7 @@ t id; @nocontain@ type t; -identifier anyid.id !~= "foo"; +identifier anyid.id !~ "foo"; fresh identifier nocontain = id ##"_doesn_t_contain_foo"; @@ @@ -27,7 +27,7 @@ t id; @endsby@ type t; -identifier anyid.id ~= "foo$"; +identifier anyid.id =~ "foo$"; fresh identifier endsby = id ##"_ends_by_foo"; @@ @@ -36,7 +36,7 @@ t id; @beginsby@ type t; -identifier anyid.id ~= "^foo"; +identifier anyid.id =~ "^foo"; fresh identifier beginsby = id ##"_begins_by_foo"; @@