Release Shakeout Part 1 (#1184)
* Have actionables on series detail action bar and in title to make it easier to use. * Fixed a bug where super long titles could render over the book content * Fixed a bug in get continue point where it wasn't working in an edge case
This commit is contained in:
parent
006504d30f
commit
99585279c2
6 changed files with 67 additions and 45 deletions
17
API.Tests/Comparers/SortComparerZeroLastTests.cs
Normal file
17
API.Tests/Comparers/SortComparerZeroLastTests.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System.Linq;
|
||||
using API.Comparators;
|
||||
using Xunit;
|
||||
|
||||
namespace API.Tests.Comparers;
|
||||
|
||||
public class SortComparerZeroLastTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData(new[] {0, 1, 2,}, new[] {1, 2, 0})]
|
||||
[InlineData(new[] {3, 1, 2}, new[] {1, 2, 3})]
|
||||
[InlineData(new[] {0, 0, 1}, new[] {1, 0, 0})]
|
||||
public void SortComparerZeroLastTest(int[] input, int[] expected)
|
||||
{
|
||||
Assert.Equal(expected, input.OrderBy(f => f, new SortComparerZeroLast()).ToArray());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue