Atualização automática - 2026-06-24 13:47:42
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import fs from 'fs';
|
||||
import { validateCertificateAgainstStandard } from './services/validationEngine';
|
||||
|
||||
const std = JSON.parse(fs.readFileSync('./data/standards.json', 'utf8'))[0];
|
||||
const report: any = {
|
||||
identification: { product: "PERFIL I", standards: "ASTM A572 GR50" },
|
||||
compliance: {
|
||||
mechanical: [
|
||||
{ property: "Yield Strength (Limite de Escoamento)", certificate: "415 MPa", status: "OK" },
|
||||
{ property: "Tensile Strength (Limite de Resistência)", certificate: "547 MPa", status: "OK" }
|
||||
],
|
||||
chemical: []
|
||||
}
|
||||
};
|
||||
|
||||
const result = validateCertificateAgainstStandard(report, std);
|
||||
console.log(JSON.stringify(result.compliance.mechanical, null, 2));
|
||||
Reference in New Issue
Block a user