Skip to content

Commit beadd3d

Browse files
committed
Fix test case for Exbibytes
The test case value was wrong, but still passed the test. Calculated value before: 6.9388939039072283776476979255676e-18 Calculated value after: 1.0842021724855044340074528008699e-19 Diff: 6.83...e-18 This delta is very small compared to the allowed tolerance of 1e-5.
1 parent b6a1863 commit beadd3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitsNet.Tests/CustomCode/InformationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class InformationTests : InformationTestsBase
3636

3737
protected override double ExbibitsInOneBit => 1d/Math.Pow(1024, 6);
3838

39-
protected override double ExbibytesInOneBit => 8d/Math.Pow(1024, 6);
39+
protected override double ExbibytesInOneBit => 1/8d/Math.Pow(1024, 6);
4040

4141
protected override double GibibitsInOneBit => 1d/Math.Pow(1024, 3);
4242

@@ -97,4 +97,4 @@ public void MinValueIsCorrectForUnitWithBaseTypeDecimal()
9797
Assert.Equal((double) decimal.MinValue, Information.MinValue.Bits);
9898
}
9999
}
100-
}
100+
}

0 commit comments

Comments
 (0)