Skip to content

Instantly share code, notes, and snippets.

@corrspt
Last active December 4, 2015 10:52
Show Gist options
  • Select an option

  • Save corrspt/02e1f671c24a200a8426 to your computer and use it in GitHub Desktop.

Select an option

Save corrspt/02e1f671c24a200a8426 to your computer and use it in GitHub Desktop.
Rules Tests
test('|Heat Input|when totalWeldingThickness is >= 12 calculate correct rules', function(assert) {
let baseMaterialGroupName = null;
let hardessRequirement = false;
let impactRequirement = false;
let heatInputTP = 8.23;
let totalWeldingThickness = 12;
let result = PQRRules.calculateHeatInputApprovalRange(this.isoStandard,
baseMaterialGroupName, hardessRequirement, impactRequirement,
heatInputTP, totalWeldingThickness);
assert.equal(result.heatInputARmax, 10.29, 'Should be 125% of initial value');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment