Skip to content

Commit 9452180

Browse files
mrthornhillJeffrey Noack
andauthored
Add nanoliter unit to Volume quantity (#1167)
Updated Volume.json Regenerated code Fixed test stubs Passed tests Co-authored-by: Jeffrey Noack <[email protected]>
1 parent 50fb867 commit 9452180

File tree

10 files changed

+145
-36
lines changed

10 files changed

+145
-36
lines changed

Common/UnitDefinitions/Volume.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"PluralName": "Liters",
1212
"FromUnitToBaseFunc": "{x} / 1e3",
1313
"FromBaseToUnitFunc": "{x} * 1e3",
14-
"Prefixes": [ "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ],
14+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ],
1515
"Localization": [
1616
{
1717
"Culture": "en-US",

Common/UnitEnumValues.g.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,8 @@
15251525
"UsPint": 49,
15261526
"UsQuart": 50,
15271527
"UsTablespoon": 51,
1528-
"UsTeaspoon": 52
1528+
"UsTeaspoon": 52,
1529+
"Nanoliter": 53
15291530
},
15301531
"VolumeConcentration": {
15311532
"CentilitersPerLiter": 1,

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

Lines changed: 13 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/VolumeUnit.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.NumberExtensions.Tests/GeneratedCode/NumberToVolumeExtensionsTest.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/NumberToVolumeExtensions.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/VolumeTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public class VolumeTests : VolumeTestsBase
6464

6565
protected override double MillilitersInOneCubicMeter => 1E6;
6666

67+
protected override double NanolitersInOneCubicMeter => 1E12;
68+
6769
protected override double AuTablespoonsInOneCubicMeter => 50000;
6870

6971
protected override double UsTablespoonsInOneCubicMeter => 67628.0454;

0 commit comments

Comments
 (0)