summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/AbuseFilter/tests/parserTests/list-comparisons.t
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2020-06-04 11:01:00 -0300
committerYaco <franco@reevo.org>2020-06-04 11:01:00 -0300
commitfc7369835258467bf97eb64f184b93691f9a9fd5 (patch)
treedaabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/AbuseFilter/tests/parserTests/list-comparisons.t
first commit
Diffstat (limited to 'www/wiki/extensions/AbuseFilter/tests/parserTests/list-comparisons.t')
-rw-r--r--www/wiki/extensions/AbuseFilter/tests/parserTests/list-comparisons.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/wiki/extensions/AbuseFilter/tests/parserTests/list-comparisons.t b/www/wiki/extensions/AbuseFilter/tests/parserTests/list-comparisons.t
new file mode 100644
index 00000000..db431573
--- /dev/null
+++ b/www/wiki/extensions/AbuseFilter/tests/parserTests/list-comparisons.t
@@ -0,0 +1,11 @@
+a := [1, 2, 3];
+b := [1, 2, 3];
+c := [2, 3, 4];
+d := [1, 2, 3, 4];
+e := ['1', '2', '3'];
+f := [[['1']]];
+g := [[[1]]];
+h := [[1, 2], 3];
+i := [['1', 2], '3'];
+
+a == b & a === b & a != c & b != d & a == e & a !== e & f == g & f !== g & h == i & h !== i & e != i