diff --git a/tests/parserTests/comparisons.t b/tests/parserTests/comparisons.t new file mode 100644 index 000000000..1d3f0ef75 --- /dev/null +++ b/tests/parserTests/comparisons.t @@ -0,0 +1,30 @@ +(2 = 2) & +(2 == 2) & +(2 === 2) & +('2' = 2) & +('2' == 2) & +('2' !== 2) & +(['1','2'] = ['1','2']) & +(['1','2'] == ['1','2']) & +(['1','2'] === ['1','2']) & +(['1','2'] != ['2','1']) & +(['1','2'] = ['1',2]) & +(['1','2'] == ['1',2]) & +(['1','2'] !== ['1',2]) & +(true = 1) & +(true == 1) & +(true !== 1) & +(false != 0) & +(false = '') & +(false == '') & +(false !== '') & +(false = []) & +(false == []) & +(false !== []) & +(false = null) & +(false == null) & +(false !== null) & +([] = null) & +([] == null) & +([] !== null) & +([] != '') diff --git a/tests/parserTests/lcase.t b/tests/parserTests/lcase.t index 6995baf77..204d12f16 100644 --- a/tests/parserTests/lcase.t +++ b/tests/parserTests/lcase.t @@ -1 +1 @@ -lcase("FÁmí") = "fámí" +lcase("FÁmí") === "fámí" diff --git a/tests/parserTests/mwexamples-comparisons.t b/tests/parserTests/mwexamples-comparisons.t index 76582590c..2527a36a1 100644 --- a/tests/parserTests/mwexamples-comparisons.t +++ b/tests/parserTests/mwexamples-comparisons.t @@ -19,4 +19,3 @@ ([] == false) & ([] == null) & !(['1'] == '1') - diff --git a/tests/parserTests/prec.t b/tests/parserTests/prec.t index 3aff6ab15..7162270f0 100644 --- a/tests/parserTests/prec.t +++ b/tests/parserTests/prec.t @@ -1 +1 @@ -(1 + 2 * 3 = 7) & (2 ** 2 * 2 = 8) & (1 - 1 - 1 = -1) +(1 + 2 * 3 === 7) & (2 ** 2 * 2 === 8) & (1 - 1 - 1 === -1) diff --git a/tests/parserTests/rcount.t b/tests/parserTests/rcount.t index a514dad5f..32f8aa71c 100644 --- a/tests/parserTests/rcount.t +++ b/tests/parserTests/rcount.t @@ -1,3 +1,3 @@ -rcount("a,b,c,d") = 4 & -rcount(".", "abcd") = 4 +rcount("a,b,c,d") === 4 & +rcount(".", "abcd") === 4 diff --git a/tests/parserTests/rmdoubles.t b/tests/parserTests/rmdoubles.t index 7a0a3f8fc..bdf132445 100644 --- a/tests/parserTests/rmdoubles.t +++ b/tests/parserTests/rmdoubles.t @@ -1 +1 @@ -rmdoubles("foobarééqq") = "fobaréq" +rmdoubles("foobarééqq") === "fobaréq" diff --git a/tests/parserTests/rmspecials.t b/tests/parserTests/rmspecials.t index a4df5cd59..401dc44e4 100644 --- a/tests/parserTests/rmspecials.t +++ b/tests/parserTests/rmspecials.t @@ -1 +1 @@ -rmspecials("foo;bar!") = "foobar" +rmspecials("foo;bar!") === "foobar" diff --git a/tests/parserTests/sanitize.t b/tests/parserTests/sanitize.t index 06036c0c4..107afd9b5 100644 --- a/tests/parserTests/sanitize.t +++ b/tests/parserTests/sanitize.t @@ -1 +1 @@ -sanitize('یک') = 'یک' +sanitize('یک') === 'یک' diff --git a/tests/parserTests/ucase.t b/tests/parserTests/ucase.t index be058b8be..ce2189b33 100644 --- a/tests/parserTests/ucase.t +++ b/tests/parserTests/ucase.t @@ -1 +1 @@ -ucase("FÁmí") = "FÁMÍ" +ucase("FÁmí") === "FÁMÍ" diff --git a/tests/parserTests/wptest2.t b/tests/parserTests/wptest2.t index 0e1375033..0aabd8ee4 100644 --- a/tests/parserTests/wptest2.t +++ b/tests/parserTests/wptest2.t @@ -16,6 +16,6 @@ removed_lines_test := ['testtest2']; /*Counts of more reference tags are removed than added */ & (rcount("(|)",removed_lines_test) > rcount("(|)",added_lines_test)) /*Excludes changing to the named reference format and removing closing tags attached to formerly named refs. Unequality is to account for closing the first named tag */ -& !(rcount("",removed_lines_test) = rcount("",removed_lines_test) <= rcount("",removed_lines_test) === rcount("",removed_lines_test) <= rcount(" count("http://en.wikipedia.org",string(added_lines_test)))