mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Removing if statement and always testing reverse of x and y.
This commit is contained in:
parent
0f9e95b4c5
commit
6ba7db3d55
@ -26,10 +26,7 @@ namespace Jellyfin.Server.Implementations.Tests.Sorting
|
|||||||
var cmp = new AiredEpisodeOrderComparer();
|
var cmp = new AiredEpisodeOrderComparer();
|
||||||
|
|
||||||
Assert.Equal(expected, cmp.Compare(x, y));
|
Assert.Equal(expected, cmp.Compare(x, y));
|
||||||
if (expected == 1)
|
Assert.Equal(-expected, cmp.Compare(y, x));
|
||||||
{
|
|
||||||
Assert.Equal(-expected, cmp.Compare(y, x));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class EpisodeBadData : IEnumerable<object?[]>
|
private class EpisodeBadData : IEnumerable<object?[]>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user