C#: Update some tuple related tests.

This commit is contained in:
Michael Nebel
2025-10-09 16:17:17 +02:00
parent 89681a49e6
commit e8fd843e52
3 changed files with 10 additions and 22 deletions

View File

@@ -1,12 +1,8 @@
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 0 | CSharp7.cs:96:19:96:19 | Item1 |
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 1 | CSharp7.cs:102:22:102:46 | Item2 |
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 0 | CSharp7.cs:213:6:213:8 | Item1 |
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 1 | CSharp7.cs:213:11:213:16 | Item2 |
| (Int32,Int32) | (int, int) | ValueTuple<int, int> | 2 | 0 | CSharp7.cs:62:10:62:10 | Item1 |
| (Int32,Int32) | (int, int) | ValueTuple<int, int> | 2 | 1 | CSharp7.cs:62:17:62:17 | Item2 |
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 0 | CSharp7.cs:95:19:95:19 | Item1 |
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 1 | CSharp7.cs:95:22:95:37 | Item2 |
| (String,Int32) | (string, int) | ValueTuple<string, int> | 2 | 0 | CSharp7.cs:82:17:82:17 | Item1 |
| (String,Int32) | (string, int) | ValueTuple<string, int> | 2 | 1 | CSharp7.cs:82:23:82:23 | Item2 |
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 0 | CSharp7.cs:87:19:87:27 | Item1 |
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 1 | CSharp7.cs:87:30:87:33 | Item2 |
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 0 | Item1 |
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 1 | Item2 |
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 0 | Item1 |
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 1 | Item2 |
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 0 | Item1 |
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 1 | Item2 |
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 0 | Item1 |
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 1 | Item2 |

View File

@@ -1,6 +1,6 @@
import csharp
from TupleType tt, int i
where tt.getAnElement().fromSource()
where tt.fromSource()
select tt.getName(), tt.toStringWithTypes(), tt.getUnderlyingType().toStringWithTypes(),
tt.getArity(), i, tt.getElement(i)
tt.getArity(), i, tt.getElement(i).getName()