Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Delta suffix of TemperatureDelta units (Fixes #331). #339

Merged
merged 4 commits into from
Dec 10, 2017

Conversation

dutts
Copy link
Contributor

@dutts dutts commented Dec 10, 2017

Fixed generate-code.bat to allow spaces in script path.

Fixed generate-code.bat to allow spaces in script path.
Copy link
Owner

@angularsen angularsen left a comment

Choose a reason for hiding this comment

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

Good job, just a couple of things.

@@ -3,9 +3,106 @@
"BaseUnit": "KelvinDelta",
Copy link
Owner

Choose a reason for hiding this comment

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

Change this to Kelvin.

"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "▲K" ]
Copy link
Owner

Choose a reason for hiding this comment

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

Change symbols to ∆

See discussions:
#327
#328

@@ -90,6 +193,7 @@
{
"SingularName": "DegreeRoemerDelta",
"PluralName": "DegreesRoemerDelta",
"ObsoleteText": "Deprecated due to github issue #180, please use DegreeRoemer instead",
Copy link
Owner

Choose a reason for hiding this comment

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

Nice description!

@@ -1,3 +1,3 @@
@echo off
SET scriptdir=%~dp0
powershell -ExecutionPolicy Bypass -NoProfile -File %scriptdir%UnitsNet\Scripts\GenerateUnits.ps1
powershell -ExecutionPolicy Bypass -NoProfile -File "%scriptdir%UnitsNet\Scripts\GenerateUnits.ps1"
Copy link
Owner

Choose a reason for hiding this comment

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

Ah, good catch.

protected override double DegreesRankineInOneKelvinDelta => 1.8;
protected override double DegreesReaumurInOneKelvinDelta => 0.8;
protected override double DegreesRoemerInOneKelvinDelta => 21 / 40d;
protected override double KelvinsInOneKelvinDelta => 1;
Copy link
Owner

Choose a reason for hiding this comment

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

When changing base unit to Kelvin as commented below and regenerating the code, then this test code must be updated too.

@dutts
Copy link
Contributor Author

dutts commented Dec 10, 2017

Will address the comments, cheers

Copy link
Owner

@angularsen angularsen left a comment

Choose a reason for hiding this comment

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

Looks good, thanks a lot.

@@ -94,7 +95,7 @@ public void MultiplyByTemperatureDeltaEqualsTemperature(TemperatureUnit unit, in
public void TemperatureDeltaPlusTemperatureEqualsTemperature(TemperatureUnit unit, int deltaVal, int temperatureVal, string expected)
{
Temperature temperature = Temperature.From(temperatureVal, unit);
TemperatureDelta delta = TemperatureDelta.From(deltaVal, (TemperatureDeltaUnit) unit);
TemperatureDelta delta = TemperatureDelta.From(deltaVal, (TemperatureDeltaUnit)Enum.Parse(typeof(TemperatureDeltaUnit), unit.ToString()));
Copy link
Owner

Choose a reason for hiding this comment

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

Good catch

@angularsen angularsen merged commit 431527d into angularsen:master Dec 10, 2017
@angularsen
Copy link
Owner

Nuget 3.84 on its way out

@dutts
Copy link
Contributor Author

dutts commented Dec 10, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants