adds tests

This commit is contained in:
Rebecca Valentine
2019-04-01 10:40:51 -07:00
parent 5bf7efeed3
commit a16b5d36a8
2 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
///////////////////
// //
// SHOULD FIND //
// //
///////////////////
foo[bar]
foo.bar
new Foo
new Foo()
foo.bar = 5
foo(bar)
x + y
x - y
x * y
x / y
x % y
+x
-x
++x
x++
--x
x--
x += y
x -= y
x *= y
x /= y
x %= y
x , y = p
[1,2,...xs]
x & y
x | y
x ^ y
x << y
x >> y
x <<< y
~x
x &= y
x |= y
x ^= y
x <<= y
x >>= y
x >>>= y
for (let x of y) { }
///////////////////////
// //
// SHOULD NOT FIND //
// //
///////////////////////
x && y
x || y
!x
if (x) { }
while (x) { }
for (; y; z) { }
for (let x in y) { }

View File

@@ -0,0 +1,3 @@
import javascript
query predicate test_inNullSensitiveContext(Expr e) { e.inNullSensitiveContext() }