cardigann: improve GetLongFromString and parse fields (#14094)

This commit is contained in:
Bogdan
2023-02-25 23:11:53 +02:00
committed by GitHub
parent f7e6884720
commit a99093386a
3 changed files with 25 additions and 31 deletions

View File

@@ -89,6 +89,7 @@ namespace Jackett.Test.Common.Utils
[TestCase("1", 1)]
[TestCase("1000 grabs", 1000)]
[TestCase("asdf123asdf", 123)]
[TestCase("asdf123asdf456asdf", 123)]
public void should_parse_long_from_string(string original, long? parsedInt)
{
ParseUtil.GetLongFromString(original).Should().Be(parsedInt);