Skip to content

Commit 1cd74c8

Browse files
authored
Add MegalitersPerHour, MegalitersPerMinute, MegalitersPerSecond (#1223)
1 parent b993886 commit 1cd74c8

File tree

10 files changed

+444
-234
lines changed

10 files changed

+444
-234
lines changed

Common/UnitDefinitions/VolumeFlow.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
"PluralName": "LitersPerSecond",
181181
"FromUnitToBaseFunc": "{x} / 1000",
182182
"FromBaseToUnitFunc": "{x} * 1000",
183-
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo" ],
183+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega" ],
184184
"Localization": [
185185
{
186186
"Culture": "en-US",
@@ -197,7 +197,7 @@
197197
"PluralName": "LitersPerMinute",
198198
"FromUnitToBaseFunc": "{x} / 60000.00000",
199199
"FromBaseToUnitFunc": "{x} * 60000.00000",
200-
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo" ],
200+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega" ],
201201
"Localization": [
202202
{
203203
"Culture": "en-US",
@@ -214,7 +214,7 @@
214214
"PluralName": "LitersPerHour",
215215
"FromUnitToBaseFunc": "{x} / 3600000.000",
216216
"FromBaseToUnitFunc": "{x} * 3600000.000",
217-
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo" ],
217+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega" ],
218218
"Localization": [
219219
{
220220
"Culture": "en-US",

Common/UnitEnumValues.g.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,10 @@
16411641
"UsGallonPerHour": 60,
16421642
"UsGallonPerMinute": 61,
16431643
"UsGallonPerSecond": 62,
1644-
"MillionUsGallonPerDay": 66
1644+
"MillionUsGallonPerDay": 66,
1645+
"MegaliterPerHour": 68,
1646+
"MegaliterPerMinute": 64,
1647+
"MegaliterPerSecond": 65
16451648
},
16461649
"VolumeFlowPerArea": {
16471650
"CubicFootPerMinutePerSquareFoot": 1,

UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs

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

UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowUnit.g.cs

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

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

Lines changed: 12 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: 12 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: 68 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -28,122 +28,137 @@ namespace UnitsNet.Tests.CustomCode
2828
public class VolumeFlowTests : VolumeFlowTestsBase
2929
{
3030
protected override bool SupportsSIUnitSystem => false;
31-
protected override double CubicMetersPerHourInOneCubicMeterPerSecond => 3.6e3;
3231

33-
protected override double CubicDecimetersPerMinuteInOneCubicMeterPerSecond => 6e4;
32+
protected override double AcreFeetPerDayInOneCubicMeterPerSecond => 70.0457;
3433

35-
protected override double CubicFeetPerHourInOneCubicMeterPerSecond => 1.271328001973604e+5;
34+
protected override double AcreFeetPerHourInOneCubicMeterPerSecond => 2.91857;
3635

37-
protected override double CubicFeetPerSecondInOneCubicMeterPerSecond => 35.314666721489;
38-
protected override double MillionUsGallonsPerDayInOneCubicMeterPerSecond => 22.824465227;
36+
protected override double AcreFeetPerMinuteInOneCubicMeterPerSecond => 0.0486427916;
3937

40-
protected override double CubicMetersPerSecondInOneCubicMeterPerSecond => 1;
38+
protected override double AcreFeetPerSecondInOneCubicMeterPerSecond => 0.000810714;
4139

42-
protected override double UsGallonsPerMinuteInOneCubicMeterPerSecond => 1.5850323141489e4;
43-
protected override double LitersPerHourInOneCubicMeterPerSecond => 3.6e6;
40+
protected override double CentilitersPerDayInOneCubicMeterPerSecond => 8.64e9;
4441

45-
protected override double LitersPerMinuteInOneCubicMeterPerSecond => 6e4;
42+
protected override double CentilitersPerHourInOneCubicMeterPerSecond => 3.6e8;
43+
44+
protected override double CentilitersPerMinuteInOneCubicMeterPerSecond => 6e6;
4645

47-
protected override double NanolitersPerMinuteInOneCubicMeterPerSecond => 6e13;
48-
protected override double LitersPerSecondInOneCubicMeterPerSecond => 1000;
49-
protected override double KilolitersPerSecondInOneCubicMeterPerSecond => 1;
50-
protected override double DecilitersPerSecondInOneCubicMeterPerSecond => 1e4;
5146
protected override double CentilitersPerSecondInOneCubicMeterPerSecond => 1e5;
5247

53-
protected override double MillilitersPerSecondInOneCubicMeterPerSecond => 1e6;
54-
protected override double MicrolitersPerSecondInOneCubicMeterPerSecond => 1e9;
48+
protected override double CubicCentimetersPerMinuteInOneCubicMeterPerSecond => 6e7;
5549

56-
protected override double NanolitersPerSecondInOneCubicMeterPerSecond => 1e12;
50+
protected override double CubicDecimetersPerMinuteInOneCubicMeterPerSecond => 6e4;
5751

58-
protected override double MicrolitersPerMinuteInOneCubicMeterPerSecond => 6e10;
52+
protected override double CubicFeetPerHourInOneCubicMeterPerSecond => 1.271328001973604e+5;
5953

60-
protected override double MillilitersPerMinuteInOneCubicMeterPerSecond => 6e7;
54+
protected override double CubicFeetPerMinuteInOneCubicMeterPerSecond => 2.11888E3;
6155

62-
protected override double CentilitersPerMinuteInOneCubicMeterPerSecond => 6e6;
56+
protected override double CubicFeetPerSecondInOneCubicMeterPerSecond => 35.314666721489;
6357

64-
protected override double DecilitersPerMinuteInOneCubicMeterPerSecond => 6e5;
58+
protected override double CubicMetersPerDayInOneCubicMeterPerSecond => 8.64e4;
6559

66-
protected override double KilolitersPerMinuteInOneCubicMeterPerSecond => 60;
60+
protected override double CubicMetersPerHourInOneCubicMeterPerSecond => 3.6e3;
6761

68-
protected override double OilBarrelsPerDayInOneCubicMeterPerSecond => 5.4343965056533388306722269588172e5;
62+
protected override double CubicMetersPerMinuteInOneCubicMeterPerSecond => 6.0E1;
6963

70-
protected override double CubicFeetPerMinuteInOneCubicMeterPerSecond => 2.11888E3;
64+
protected override double CubicMetersPerSecondInOneCubicMeterPerSecond => 1;
7165

72-
protected override double CubicMetersPerMinuteInOneCubicMeterPerSecond => 6.0E1;
66+
protected override double CubicMillimetersPerSecondInOneCubicMeterPerSecond => 1e9;
67+
68+
protected override double CubicYardsPerDayInOneCubicMeterPerSecond => 1.13007e5;
7369

7470
protected override double CubicYardsPerHourInOneCubicMeterPerSecond => 4.708622232E3;
7571

7672
protected override double CubicYardsPerMinuteInOneCubicMeterPerSecond => 7.84770372E1;
7773

7874
protected override double CubicYardsPerSecondInOneCubicMeterPerSecond => 1.30795062;
7975

80-
protected override double UsGallonsPerHourInOneCubicMeterPerSecond => 9.510193884893328E5;
76+
protected override double DecilitersPerDayInOneCubicMeterPerSecond => 8.64e8;
8177

82-
protected override double UsGallonsPerSecondInOneCubicMeterPerSecond => 2.64172052358148E2;
78+
protected override double DecilitersPerHourInOneCubicMeterPerSecond => 3.6e7;
8379

84-
protected override double AcreFeetPerDayInOneCubicMeterPerSecond => 70.0457;
80+
protected override double DecilitersPerMinuteInOneCubicMeterPerSecond => 6e5;
8581

86-
protected override double AcreFeetPerHourInOneCubicMeterPerSecond => 2.91857;
82+
protected override double DecilitersPerSecondInOneCubicMeterPerSecond => 1e4;
8783

88-
protected override double AcreFeetPerMinuteInOneCubicMeterPerSecond => 0.0486427916;
84+
protected override double KilolitersPerDayInOneCubicMeterPerSecond => 8.64e4;
8985

90-
protected override double AcreFeetPerSecondInOneCubicMeterPerSecond => 0.000810714;
86+
protected override double KilolitersPerHourInOneCubicMeterPerSecond => 3.6e3;
9187

92-
protected override double CentilitersPerDayInOneCubicMeterPerSecond => 8.64e9;
88+
protected override double KilolitersPerMinuteInOneCubicMeterPerSecond => 60;
9389

94-
protected override double CubicMetersPerDayInOneCubicMeterPerSecond => 8.64e4;
90+
protected override double KilolitersPerSecondInOneCubicMeterPerSecond => 1;
9591

96-
protected override double CubicYardsPerDayInOneCubicMeterPerSecond => 1.13007e5;
92+
protected override double KilousGallonsPerMinuteInOneCubicMeterPerSecond => 1.5850323141489e1;
9793

98-
protected override double DecilitersPerDayInOneCubicMeterPerSecond => 8.64e8;
94+
protected override double LitersPerDayInOneCubicMeterPerSecond => 8.64e7;
9995

100-
protected override double KilolitersPerDayInOneCubicMeterPerSecond => 8.64e4;
96+
protected override double LitersPerHourInOneCubicMeterPerSecond => 3.6e6;
10197

102-
protected override double LitersPerDayInOneCubicMeterPerSecond => 8.64e7;
98+
protected override double LitersPerMinuteInOneCubicMeterPerSecond => 6e4;
99+
100+
protected override double LitersPerSecondInOneCubicMeterPerSecond => 1000;
103101

104102
protected override double MegalitersPerDayInOneCubicMeterPerSecond => 86.4;
105103

104+
protected override double MegalitersPerHourInOneCubicMeterPerSecond => 3.6e0;
105+
106+
protected override double MegalitersPerMinuteInOneCubicMeterPerSecond => 6e-2;
107+
108+
protected override double MegalitersPerSecondInOneCubicMeterPerSecond => 1e-3;
109+
110+
protected override double MegaukGallonsPerSecondInOneCubicMeterPerSecond => 2.19969e-4;
111+
106112
protected override double MicrolitersPerDayInOneCubicMeterPerSecond => 8.64e+13;
107113

114+
protected override double MicrolitersPerHourInOneCubicMeterPerSecond => 3.6e12;
115+
116+
protected override double MicrolitersPerMinuteInOneCubicMeterPerSecond => 6e10;
117+
118+
protected override double MicrolitersPerSecondInOneCubicMeterPerSecond => 1e9;
119+
108120
protected override double MillilitersPerDayInOneCubicMeterPerSecond => 8.64e+10;
109121

110-
protected override double NanolitersPerDayInOneCubicMeterPerSecond => 8.64e+16;
122+
protected override double MillilitersPerHourInOneCubicMeterPerSecond => 3.6e9;
111123

112-
protected override double OilBarrelsPerSecondInOneCubicMeterPerSecond => 6.28981;
124+
protected override double MillilitersPerMinuteInOneCubicMeterPerSecond => 6e7;
113125

114-
protected override double UkGallonsPerDayInOneCubicMeterPerSecond => 1.9005304e7;
126+
protected override double MillilitersPerSecondInOneCubicMeterPerSecond => 1e6;
115127

116-
protected override double UkGallonsPerHourInOneCubicMeterPerSecond => 791888.967;
128+
protected override double MillionUsGallonsPerDayInOneCubicMeterPerSecond => 22.824465227;
117129

118-
protected override double UkGallonsPerMinuteInOneCubicMeterPerSecond => 1.31982e4;
130+
protected override double NanolitersPerDayInOneCubicMeterPerSecond => 8.64e+16;
119131

120-
protected override double UkGallonsPerSecondInOneCubicMeterPerSecond => 219.969;
132+
protected override double NanolitersPerHourInOneCubicMeterPerSecond => 3.6e15;
121133

122-
protected override double UsGallonsPerDayInOneCubicMeterPerSecond => 2.2824465227e7;
134+
protected override double NanolitersPerMinuteInOneCubicMeterPerSecond => 6e13;
123135

124-
protected override double MegaukGallonsPerSecondInOneCubicMeterPerSecond => 2.19969e-4;
136+
protected override double NanolitersPerSecondInOneCubicMeterPerSecond => 1e12;
137+
138+
protected override double OilBarrelsPerDayInOneCubicMeterPerSecond => 5.4343965056533388306722269588172e5;
125139

126140
protected override double OilBarrelsPerHourInOneCubicMeterPerSecond => 2.26431877E4;
127141

128142
protected override double OilBarrelsPerMinuteInOneCubicMeterPerSecond => 3.77388865E2;
129143

130-
protected override double KilousGallonsPerMinuteInOneCubicMeterPerSecond => 1.5850323141489e1;
144+
protected override double OilBarrelsPerSecondInOneCubicMeterPerSecond => 6.28981;
131145

132-
protected override double CubicMillimetersPerSecondInOneCubicMeterPerSecond => 1e9;
146+
protected override double UkGallonsPerDayInOneCubicMeterPerSecond => 1.9005304e7;
133147

134-
protected override double CubicCentimetersPerMinuteInOneCubicMeterPerSecond => 6e7;
148+
protected override double UkGallonsPerHourInOneCubicMeterPerSecond => 791888.967;
135149

136-
protected override double CentilitersPerHourInOneCubicMeterPerSecond => 3.6e8;
150+
protected override double UkGallonsPerMinuteInOneCubicMeterPerSecond => 1.31982e4;
137151

138-
protected override double DecilitersPerHourInOneCubicMeterPerSecond => 3.6e7;
152+
protected override double UkGallonsPerSecondInOneCubicMeterPerSecond => 219.969;
139153

140-
protected override double KilolitersPerHourInOneCubicMeterPerSecond => 3.6e3;
154+
protected override double UsGallonsPerDayInOneCubicMeterPerSecond => 2.2824465227e7;
141155

142-
protected override double MicrolitersPerHourInOneCubicMeterPerSecond => 3.6e12;
156+
protected override double UsGallonsPerHourInOneCubicMeterPerSecond => 9.510193884893328E5;
143157

144-
protected override double MillilitersPerHourInOneCubicMeterPerSecond => 3.6e9;
158+
protected override double UsGallonsPerMinuteInOneCubicMeterPerSecond => 1.5850323141489e4;
159+
160+
protected override double UsGallonsPerSecondInOneCubicMeterPerSecond => 2.64172052358148E2;
145161

146-
protected override double NanolitersPerHourInOneCubicMeterPerSecond => 3.6e15;
147162

148163
[Theory]
149164
[InlineData(20, 2, 40)]

0 commit comments

Comments
 (0)