Skip to content

Commit 50baf2e

Browse files
authored
Merge pull request #862 from dimabugrov/edit-volumeFlow
Cubic centimeter added a to VolumeFlow
2 parents 7d6e4b6 + 11c78e0 commit 50baf2e

File tree

12 files changed

+269
-144
lines changed

12 files changed

+269
-144
lines changed

Common/UnitDefinitions/VolumeFlow.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
{
3333
"Culture": "en-US",
3434
"Abbreviations": [ "m³/min" ]
35+
},
36+
{
37+
"Culture": "ru-RU",
38+
"Abbreviations": [ "м³/мин" ]
3539
}
3640
]
3741
},
@@ -181,6 +185,10 @@
181185
{
182186
"Culture": "en-US",
183187
"Abbreviations": [ "L/s", "LPS" ]
188+
},
189+
{
190+
"Culture": "ru-RU",
191+
"Abbreviations": [ "л/c" ]
184192
}
185193
]
186194
},
@@ -194,6 +202,10 @@
194202
{
195203
"Culture": "en-US",
196204
"Abbreviations": [ "L/min", "LPM" ]
205+
},
206+
{
207+
"Culture": "ru-RU",
208+
"Abbreviations": [ "л/мин" ]
197209
}
198210
]
199211
},
@@ -450,6 +462,22 @@
450462
"Abbreviations": [ "af/d" ]
451463
}
452464
]
465+
},
466+
{
467+
"SingularName": "CubicCentimeterPerMinute",
468+
"PluralName": "CubicCentimetersPerMinute",
469+
"FromUnitToBaseFunc": "x*1.6666666666667e-8",
470+
"FromBaseToUnitFunc": "x/1.6666666666667e-8",
471+
"Localization": [
472+
{
473+
"Culture": "en-US",
474+
"Abbreviations": [ "sm³/min" ]
475+
},
476+
{
477+
"Culture": "ru-RU",
478+
"Abbreviations": [ "см³/мин" ]
479+
}
480+
]
453481
}
454482
]
455483
}

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

Lines changed: 4 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: 4 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public class VolumeFlowTests : VolumeFlowTestsBase
131131

132132
protected override double CubicMillimetersPerSecondInOneCubicMeterPerSecond => 1e9;
133133

134+
protected override double CubicCentimetersPerMinuteInOneCubicMeterPerSecond => 6e7;
135+
134136
[Theory]
135137
[InlineData(20, 2, 40)]
136138
[InlineData(20, 62, 1240)]

UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs

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

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

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

UnitsNet.WindowsRuntimeComponent/GeneratedCode/UnitAbbreviationsCache.g.cs

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

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

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

UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs

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

0 commit comments

Comments
 (0)