Skip to content

Commit 2cf65c7

Browse files
committed
Swift: Autoformat tests.
1 parent 822002d commit 2cf65c7

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

swift/ql/test/library-tests/elements/expr/arithmeticoperation/arithmeticoperation.ql

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
import swift
22

33
string describe(ArithmeticOperation e) {
4-
(e instanceof BinaryArithmeticOperation and result = "BinaryArithmeticOperation") or
5-
(e instanceof AddExpr and result = "AddExpr") or
6-
(e instanceof SubExpr and result = "SubExpr") or
7-
(e instanceof MulExpr and result = "MulExpr") or
8-
(e instanceof DivExpr and result = "DivExpr") or
9-
(e instanceof RemExpr and result = "RemExpr") or
10-
(e instanceof UnaryArithmeticOperation and result = "UnaryArithmeticOperation") or
11-
(e instanceof UnaryMinusExpr and result = "UnaryMinusExpr")
4+
e instanceof BinaryArithmeticOperation and result = "BinaryArithmeticOperation"
5+
or
6+
e instanceof AddExpr and result = "AddExpr"
7+
or
8+
e instanceof SubExpr and result = "SubExpr"
9+
or
10+
e instanceof MulExpr and result = "MulExpr"
11+
or
12+
e instanceof DivExpr and result = "DivExpr"
13+
or
14+
e instanceof RemExpr and result = "RemExpr"
15+
or
16+
e instanceof UnaryArithmeticOperation and result = "UnaryArithmeticOperation"
17+
or
18+
e instanceof UnaryMinusExpr and result = "UnaryMinusExpr"
1219
}
1320

1421
from ArithmeticOperation e

swift/ql/test/library-tests/elements/expr/logicaloperation/logicaloperation.ql

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import swift
22

33
string describe(LogicalOperation e) {
4-
(e instanceof BinaryLogicalOperation and result = "BinaryLogicalExpr") or
5-
(e instanceof LogicalAndExpr and result = "LogicalAndExpr") or
6-
(e instanceof LogicalOrExpr and result = "LogicalOrExpr") or
7-
(e instanceof UnaryLogicalOperation and result = "UnaryLogicalOperation") or
8-
(e instanceof NotExpr and result = "NotExpr")
4+
e instanceof BinaryLogicalOperation and result = "BinaryLogicalExpr"
5+
or
6+
e instanceof LogicalAndExpr and result = "LogicalAndExpr"
7+
or
8+
e instanceof LogicalOrExpr and result = "LogicalOrExpr"
9+
or
10+
e instanceof UnaryLogicalOperation and result = "UnaryLogicalOperation"
11+
or
12+
e instanceof NotExpr and result = "NotExpr"
913
}
1014

1115
from LogicalOperation e

0 commit comments

Comments
 (0)