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

Nuckols #39

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixes
lsolesen committed Apr 17, 2022
commit b9ab3a7e2d3cf47d6435bc7445a9f4e4f2c17f54
16 changes: 10 additions & 6 deletions src/test/strength.js
Original file line number Diff line number Diff line change
@@ -12,20 +12,24 @@ describe('Strength', function() {
describe('getAllometricScaling', function() {
it('should return the correct number', function() {
// weigt, reps
var rm = motionsplan.Strength(405, 220);
let rm = motionsplan.Strength(405, 220);
assert.equal(rm.getAllometricScaling(), 11.11321976546847);

var rm = motionsplan.Strength(300, 150);
});
});
describe('getAllometricScalingSecondTry', function() {
it('should return the correct number', function() {
let rm = motionsplan.Strength(300, 150);
assert.equal(rm.getAllometricScaling(), 10.626585691826113);
});
});
describe('getBodyweightPercent', function() {
it('should return the correct number', function() {
// weigt, reps
var rm = motionsplan.Strength(405, 220);
let rm = motionsplan.Strength(405, 220);
assert.equal(rm.getBodyweightPercent(), 1.8409090909090908);

var rm = motionsplan.Strength(300, 150);
});
it('should return the correct number', function() {
let rm = motionsplan.Strength(300, 150);
assert.equal(rm.getBodyweightPercent(), 2);
});
});