Skip to content

Commit ed60264

Browse files
committed
Swift: Basic test for getRelativePath.
1 parent 8cf691a commit ed60264

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| error.swift:0:0:0:0 | error.swift | query-tests/Diagnostics/error.swift | |
2+
| file://:0:0:0:0 | | | |
3+
| main.swift:0:0:0:0 | main.swift | query-tests/Diagnostics/main.swift | isSuccessfullyExtracted |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import swift
2+
3+
string describe(File f) { (f.isSuccessfullyExtracted() and result = "isSuccessfullyExtracted") }
4+
5+
from File f
6+
select f, concat(f.getRelativePath(), ", "), concat(describe(f), ", ")

0 commit comments

Comments
 (0)