Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a16b5d3

Browse files
committed
adds tests
1 parent 5bf7efe commit a16b5d3

2 files changed

Lines changed: 63 additions & 0 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
///////////////////
2+
// //
3+
// SHOULD FIND //
4+
// //
5+
///////////////////
6+
7+
foo[bar]
8+
foo.bar
9+
new Foo
10+
new Foo()
11+
foo.bar = 5
12+
foo(bar)
13+
x + y
14+
x - y
15+
x * y
16+
x / y
17+
x % y
18+
+x
19+
-x
20+
++x
21+
x++
22+
--x
23+
x--
24+
x += y
25+
x -= y
26+
x *= y
27+
x /= y
28+
x %= y
29+
x , y = p
30+
[1,2,...xs]
31+
x & y
32+
x | y
33+
x ^ y
34+
x << y
35+
x >> y
36+
x <<< y
37+
~x
38+
x &= y
39+
x |= y
40+
x ^= y
41+
x <<= y
42+
x >>= y
43+
x >>>= y
44+
for (let x of y) { }
45+
46+
47+
48+
///////////////////////
49+
// //
50+
// SHOULD NOT FIND //
51+
// //
52+
///////////////////////
53+
54+
x && y
55+
x || y
56+
!x
57+
if (x) { }
58+
while (x) { }
59+
for (; y; z) { }
60+
for (let x in y) { }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import javascript
2+
3+
query predicate test_inNullSensitiveContext(Expr e) { e.inNullSensitiveContext() }

0 commit comments

Comments
 (0)