Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Common/UnitDefinitions/Volume.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,21 @@
}
]
},
{
"SingularName": "CubicAngstrom",
"PluralName": "CubicAngstroms",
"BaseUnits": {
"L": "Angstrom"
},
"FromUnitToBaseFunc": "{x} * 1E-30",
"FromBaseToUnitFunc": "{x} / 1E-30",
"Localization": [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but you are missing implementing the test cases for the new units, so the build currently fails.

See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit

{
"Culture": "en-US",
"Abbreviations": [ "ų" ]
}
]
},
{
"SingularName": "ImperialGallon",
"PluralName": "ImperialGallons",
Expand Down
3 changes: 2 additions & 1 deletion Common/UnitEnumValues.g.json
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,8 @@
"UsTeaspoon": 52,
"Nanoliter": 53,
"ImperialQuart": 57,
"MetricTablespoon": 63
"MetricTablespoon": 63,
"CubicAngstrom": 65
},
"VolumeConcentration": {
"CentiliterPerLiter": 1,
Expand Down
12 changes: 12 additions & 0 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading