mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-20 22:10:33 -04:00
* Fixed a bug with getting continue point where there was a single volume unread and a later volume with chapters inside it, the chapters were being picked. * Fixed a bug where resuming from jump key wasn't working (develop) * Cleaned up the spacing
18 lines
478 B
C#
18 lines
478 B
C#
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, SortComparerZeroLast.Default).ToArray());
|
|
}
|
|
}
|