Skip to content

Commit f2079bf

Browse files
GianniDPCGianni Declercqangularsen
authored
MassConcentration: Add ounce per gallon units (#948)
Co-authored-by: Gianni Declercq <[email protected]> Co-authored-by: Andreas Gullberg Larsen <[email protected]>
1 parent d36819b commit f2079bf

File tree

14 files changed

+218
-36
lines changed

14 files changed

+218
-36
lines changed

Common/UnitDefinitions/MassConcentration.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,30 @@
238238
"Abbreviations": [ "ppg (U.S.)" ]
239239
}
240240
]
241+
},
242+
{
243+
"SingularName": "OuncePerUSGallon",
244+
"PluralName": "OuncesPerUSGallon",
245+
"FromUnitToBaseFunc": " x/0.1335264711843",
246+
"FromBaseToUnitFunc": "x*0.1335264711843",
247+
"Localization": [
248+
{
249+
"Culture": "en-US",
250+
"Abbreviations": [ "oz/gal (U.S.)" ]
251+
}
252+
]
253+
},
254+
{
255+
"SingularName": "OuncePerImperialGallon",
256+
"PluralName": "OuncesPerImperialGallon",
257+
"FromUnitToBaseFunc": " x/0.1603586720609",
258+
"FromBaseToUnitFunc": "x*0.1603586720609",
259+
"Localization": [
260+
{
261+
"Culture": "en-US",
262+
"Abbreviations": [ "oz/gal (imp.)" ]
263+
}
264+
]
241265
},
242266
{
243267
"SingularName": "PoundPerImperialGallon",

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

Lines changed: 26 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/MassConcentrationUnit.g.cs

Lines changed: 2 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/NumberToMassConcentrationExtensionsTest.g.cs

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

UnitsNet.NumberExtensions/GeneratedCode/NumberToMassConcentrationExtensions.g.cs

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

UnitsNet.Tests/CustomCode/MassConcentrationTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public class MassConcentrationTests : MassConcentrationTestsBase
7979
protected override double PoundsPerCubicInchInOneKilogramPerCubicMeter => 3.61272923e-5;
8080
protected override double PoundsPerUSGallonInOneKilogramPerCubicMeter => 8.3454045e-3;
8181
protected override double SlugsPerCubicFootInOneKilogramPerCubicMeter => 0.00194032;
82+
83+
protected override double OuncesPerImperialGallonInOneKilogramPerCubicMeter => 0.1603586720609;
84+
85+
protected override double OuncesPerUSGallonInOneKilogramPerCubicMeter => 0.1335264711843;
8286
#endregion
8387

8488
[Theory]

0 commit comments

Comments
 (0)