Skip to content

Commit e8fd843

Browse files
committed
C#: Update some tuple related tests.
1 parent 89681a4 commit e8fd843

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

csharp/ql/test/library-tests/assignables/Assignables.expected

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@
4343
| Assignables.cs:92:23:92:23 | b |
4444
| Assignables.cs:92:33:92:33 | s |
4545
| Assignables.cs:95:40:95:44 | tuple |
46-
| Assignables.cs:97:24:97:24 | Item1 |
47-
| Assignables.cs:97:27:97:36 | Item2 |
48-
| Assignables.cs:101:6:101:8 | Item1 |
49-
| Assignables.cs:101:11:101:24 | Item2 |
50-
| Assignables.cs:101:12:101:15 | Item1 |
51-
| Assignables.cs:101:18:101:23 | Item2 |
5246
| Assignables.cs:108:13:108:13 | i |
5347
| Assignables.cs:109:14:109:14 | p |
5448
| Assignables.cs:113:25:113:25 | i |
@@ -69,8 +63,6 @@
6963
| Assignables.cs:132:13:132:13 | x |
7064
| Assignables.cs:133:29:133:29 | s |
7165
| Assignables.cs:138:19:138:19 | x |
72-
| Discards.cs:5:6:5:8 | Item1 |
73-
| Discards.cs:5:11:5:16 | Item2 |
7466
| Discards.cs:5:30:5:30 | x |
7567
| Discards.cs:19:14:19:14 | x |
7668
| Discards.cs:20:17:20:17 | y |
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 0 | CSharp7.cs:96:19:96:19 | Item1 |
2-
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 1 | CSharp7.cs:102:22:102:46 | Item2 |
3-
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 0 | CSharp7.cs:213:6:213:8 | Item1 |
4-
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 1 | CSharp7.cs:213:11:213:16 | Item2 |
5-
| (Int32,Int32) | (int, int) | ValueTuple<int, int> | 2 | 0 | CSharp7.cs:62:10:62:10 | Item1 |
6-
| (Int32,Int32) | (int, int) | ValueTuple<int, int> | 2 | 1 | CSharp7.cs:62:17:62:17 | Item2 |
7-
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 0 | CSharp7.cs:95:19:95:19 | Item1 |
8-
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 1 | CSharp7.cs:95:22:95:37 | Item2 |
9-
| (String,Int32) | (string, int) | ValueTuple<string, int> | 2 | 0 | CSharp7.cs:82:17:82:17 | Item1 |
10-
| (String,Int32) | (string, int) | ValueTuple<string, int> | 2 | 1 | CSharp7.cs:82:23:82:23 | Item2 |
11-
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 0 | CSharp7.cs:87:19:87:27 | Item1 |
12-
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 1 | CSharp7.cs:87:30:87:33 | Item2 |
1+
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 0 | Item1 |
2+
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 1 | Item2 |
3+
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 0 | Item1 |
4+
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 1 | Item2 |
5+
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 0 | Item1 |
6+
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 1 | Item2 |
7+
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 0 | Item1 |
8+
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 1 | Item2 |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import csharp
22

33
from TupleType tt, int i
4-
where tt.getAnElement().fromSource()
4+
where tt.fromSource()
55
select tt.getName(), tt.toStringWithTypes(), tt.getUnderlyingType().toStringWithTypes(),
6-
tt.getArity(), i, tt.getElement(i)
6+
tt.getArity(), i, tt.getElement(i).getName()

0 commit comments

Comments
 (0)