Skip to content

Commit

Permalink
Add decameters (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilnthorp authored Feb 9, 2022
1 parent 7f8b396 commit fc3d536
Show file tree
Hide file tree
Showing 11 changed files with 170 additions and 91 deletions.
2 changes: 1 addition & 1 deletion Common/UnitDefinitions/Length.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"FromUnitToBaseFunc": "{x}",
"FromBaseToUnitFunc": "{x}",
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Hecto", "Kilo" ],
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo" ],
"Localization": [
{
"Culture": "en-US",
Expand Down
13 changes: 13 additions & 0 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.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/LengthUnit.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.

2 changes: 2 additions & 0 deletions UnitsNet.Tests/CustomCode/LengthTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public class LengthTests : LengthTestsBase

protected override double ChainsInOneMeter => 0.0497096953789867;

protected override double DecametersInOneMeter => 1e-1;

[ Fact]
public void AreaTimesLengthEqualsVolume()
{
Expand Down
193 changes: 103 additions & 90 deletions UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs

Large diffs are not rendered by default.

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/GeneratedCode/Quantities/Length.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/GeneratedCode/Units/LengthUnit.g.cs

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

0 comments on commit fc3d536

Please sign in to comment.