Skip to content

Commit d36af98

Browse files
committed
expose Chains in ListChain
1 parent eb90664 commit d36af98

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/InformationRetrieval.Test/Utility/ListChainTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public void ListChainCreateTest()
2121

2222
Assert.Equal(7, chain.Count);
2323
Assert.Equal(new[] { 4, 5, 6, 7, 1, 2, 3 }, chain.ToArray());
24+
Assert.Equal(3, chain.Chains.Count);
2425
}
2526

2627
[Fact]

src/InformationRetrieval/Utility/ListChain.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public IEnumerator<T> GetEnumerator()
4848
}
4949
}
5050

51+
public IReadOnlyList<IReadOnlyCollection<T>> Chains => chain;
52+
5153
IEnumerator IEnumerable.GetEnumerator() =>
5254
GetEnumerator();
5355
}

0 commit comments

Comments
 (0)