Skip to content

Commit 87cfaf8

Browse files
ntpincusnpincus1
andauthored
Add prefixes to VolumeFlow.LitersPerSecond (#857)
Co-authored-by: npincus <[email protected]>
1 parent df6eafb commit 87cfaf8

File tree

12 files changed

+516
-130
lines changed

12 files changed

+516
-130
lines changed

Common/UnitDefinitions/VolumeFlow.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
"PluralName": "LitersPerSecond",
177177
"FromUnitToBaseFunc": "x/1000",
178178
"FromBaseToUnitFunc": "x*1000",
179+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo" ],
179180
"Localization": [
180181
{
181182
"Culture": "en-US",

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToVolumeFlowExtensionsTest.g.cs

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NumberExtensions/GeneratedCode/NumberToVolumeFlowExtensions.g.cs

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/CustomCode/VolumeFlowTests.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public class VolumeFlowTests : VolumeFlowTestsBase
3535
protected override double CubicFeetPerHourInOneCubicMeterPerSecond => 1.271328001973604e+5;
3636

3737
protected override double CubicFeetPerSecondInOneCubicMeterPerSecond => 35.314666721489;
38-
3938
protected override double MillionUsGallonsPerDayInOneCubicMeterPerSecond => 22.824465227;
4039

4140
protected override double CubicMetersPerSecondInOneCubicMeterPerSecond => 1;
@@ -47,6 +46,14 @@ public class VolumeFlowTests : VolumeFlowTestsBase
4746

4847
protected override double NanolitersPerMinuteInOneCubicMeterPerSecond => 6e13;
4948
protected override double LitersPerSecondInOneCubicMeterPerSecond => 1000;
49+
protected override double KilolitersPerSecondInOneCubicMeterPerSecond => 1;
50+
protected override double DecilitersPerSecondInOneCubicMeterPerSecond => 1e4;
51+
protected override double CentilitersPerSecondInOneCubicMeterPerSecond => 1e5;
52+
53+
protected override double MillilitersPerSecondInOneCubicMeterPerSecond => 1e6;
54+
protected override double MicrolitersPerSecondInOneCubicMeterPerSecond => 1e9;
55+
56+
protected override double NanolitersPerSecondInOneCubicMeterPerSecond => 1e12;
5057

5158
protected override double MicrolitersPerMinuteInOneCubicMeterPerSecond => 6e10;
5259

0 commit comments

Comments
 (0)