- Notifications
You must be signed in to change notification settings - Fork 416
Fix force conversion rates#1308
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
8f817c5281f5582ae1cbd567a5ce8e59e2054440f3dd48d4b17705d5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -11,19 +11,19 @@ public class ForceTests : ForceTestsBase | ||
| protected override double DecanewtonsInOneNewton => 1E-1; | ||
| protected override double DyneInOneNewton => 1E5; | ||
| protected override double KilogramsForceInOneNewton => 0.101972; | ||
| protected override double KilogramsForceInOneNewton => 0.1019716; | ||
| protected override double KilopoundsForceInOneNewton => 0.22481e-3; | ||
| protected override double KilopoundsForceInOneNewton => 0.2248089e-3; | ||
| protected override double MeganewtonsInOneNewton => 1E-6; | ||
| protected override double KilonewtonsInOneNewton => 1E-3; | ||
| protected override double KiloPondsInOneNewton => 0.101972; | ||
| protected override double KiloPondsInOneNewton => 0.1019716; | ||
| protected override double NewtonsInOneNewton => 1; | ||
| protected override double PoundalsInOneNewton => 7.23301; | ||
| protected override double PoundalsInOneNewton => 7.2330138; | ||
| protected override double PoundsForceInOneNewton => 0.22481; | ||
| protected override double PoundsForceInOneNewton => 0.2248089; | ||
| protected override double TonnesForceInOneNewton => 1.019716212977928e-4; | ||
| @@ -33,7 +33,7 @@ public class ForceTests : ForceTestsBase | ||
| protected override double OunceForceInOneNewton => 3.596943089595368; | ||
| protected override double ShortTonsForceInOneNewton => 1.12404471549816e-4; | ||
| protected override double ShortTonsForceInOneNewton => 1.12404471549855e-4; | ||
angularsen marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| [Fact] | ||
| public void ForceDividedByAreaEqualsPressure() | ||
| @@ -104,5 +104,13 @@ public void ForceDividedByForceChangeRateEqualsDuration() | ||
| Duration duration = Force.FromNewtons(200) / ForceChangeRate.FromNewtonsPerSecond(50); | ||
| Assert.Equal(duration, Duration.FromSeconds(4)); | ||
| } | ||
| [Fact] | ||
| public void KilogramForceDividedByNewtonEqualsStandardGravity() | ||
| { | ||
| const double standardGravity = 9.80665; | ||
| double duration = Force.FromKilogramsForce(1) / Force.FromNewtons(1); | ||
| Assert.Equal(standardGravity, duration); | ||
| } | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.