Skip to content

Commit 055072b

Browse files
committed
C#: Add more test examples.
1 parent 1b7339a commit 055072b

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

csharp/ql/test/utils/model-generator/theorems/TheoremSummaries.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,27 @@ public T Prop {
2929
// No summary as S is unrelated to T
3030
public void Set<S>(S x) { throw null; }
3131

32-
public int Apply(Func<T, int> f) { throw null; }
33-
3432
public IList<T> GetMany() { throw null; }
3533

3634
public void AddMany(IEnumerable<T> xs) { throw null; }
35+
36+
public int Apply(Func<T, int> f) { throw null; }
37+
38+
public S Apply<S>(Func<T, S> f) { throw null; }
39+
40+
public T2 Apply<T1,T2>(T1 x, Func<T1, T2> f) { throw null; }
41+
42+
public S Map<S>(Func<T, S> f) { throw null; }
43+
44+
public Theorems1<S> MapTheorem<S>(Func<T, S> f) { throw null; }
45+
46+
public Theorems1<S> FlatMap<S>(Func<T, IEnumerable<S>> f) { throw null; }
47+
48+
public Theorems1<T> FlatMap(Func<T, IEnumerable<T>> f) { throw null; }
49+
50+
public Theorems1<T> Return(Func<T, Theorems1<T>> f) { throw null; }
51+
// Examples still not working:
52+
// public void Set(int x, Func<int, T> f) { throw null;}
3753
}
3854

3955
// It is assumed that this is a collection with elements of type T.

0 commit comments

Comments
 (0)