Actually fixed size parsing this time

This commit is contained in:
Mark McDowall
2013-07-17 00:33:54 -07:00
parent 8921c45a96
commit a9dd2d2f04
3 changed files with 14 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ namespace NzbDrone.Core.Test.IndexerTests
[TestCase("7,162.1MB", 7510006170)]
[TestCase("162.1MB", 169974170)]
[TestCase("398.62 MB", 417983365)]
[TestCase("845 MB", 1073741824)]
[TestCase("845 MB", 886046720)]
public void parse_size(string sizeString, long expectedSize)
{
var result = BasicRssParser.GetReportSize(sizeString);