From 627b9a60df40776ed655da9bfb89c96ee0565970 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 18 May 2019 13:59:48 +0000 Subject: [PATCH] Test pattern for the style tool. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12808 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- tools/style/test_negatives.txt | 21 ++++++++++++ tools/style/test_positives.txt | 61 ++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 tools/style/test_negatives.txt create mode 100644 tools/style/test_positives.txt diff --git a/tools/style/test_negatives.txt b/tools/style/test_negatives.txt new file mode 100644 index 000000000..a77a4cab8 --- /dev/null +++ b/tools/style/test_negatives.txt @@ -0,0 +1,21 @@ +a = b +a == b +a != b +a += b +a -= b +a *= b +a /= b +a %= b +a &= b +a |= b +a ^= b +a <= b +a >= b +a >> b +a << b +a <<= b +a >>= b +a && b +a || b +a ^^ b + diff --git a/tools/style/test_positives.txt b/tools/style/test_positives.txt new file mode 100644 index 000000000..dab285123 --- /dev/null +++ b/tools/style/test_positives.txt @@ -0,0 +1,61 @@ +a=b +a= b +a =b +a==b +a== b +a ==b +a!=b +a!= b +a !=b +a+=b +a+= b +a +=b +a-=b +a-= b +a -=b +a*=b +a*= b +a *=b +a/=b +a/= b +a /=b +a%=b +a%= b +a %=b +a&=b +a&= b +a &=b +a|=b +a|= b +a |=b +a^=b +a^= b +a ^=b +a<=b +a<= b +a <=b +a>=b +a>= b +a >=b +a>>b +a>> b +a >>b +a<>=b +a>>= b +a >>=b +a&&b +a&& b +a &&b +a||b +a|| b +a ||b +a^^b +a^^ b +a ^^b +