Skip to content

Commit 1269a2e

Browse files
aibaarshvitved
authored andcommitted
Rust: fix extractor-tests
1 parent 8996f9e commit 1269a2e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import rust
2+
import TestUtils
23

3-
query predicate charLiteral(CharLiteralExpr e) { any() }
4+
query predicate charLiteral(CharLiteralExpr e) { toBeTested(e) }
45

5-
query predicate stringLiteral(StringLiteralExpr e) { any() }
6+
query predicate stringLiteral(StringLiteralExpr e) { toBeTested(e) }
67

78
query predicate integerLiteral(IntegerLiteralExpr e, string suffix) {
8-
suffix = concat(e.getSuffix())
9+
toBeTested(e) and suffix = concat(e.getSuffix())
910
}
1011

11-
query predicate floatLiteral(FloatLiteralExpr e, string suffix) { suffix = concat(e.getSuffix()) }
12+
query predicate floatLiteral(FloatLiteralExpr e, string suffix) {
13+
toBeTested(e) and suffix = concat(e.getSuffix())
14+
}
1215

13-
query predicate booleanLiteral(BooleanLiteralExpr e) { any() }
16+
query predicate booleanLiteral(BooleanLiteralExpr e) { toBeTested(e) }

0 commit comments

Comments
 (0)