Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
beachtom committed Oct 10, 2023
1 parent e8541c8 commit 4e51573
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ jobs:
node-version: '16.x'
- name: Run all tests
run: npm t
-name: Regression Tests
run: npm run regression
33 changes: 0 additions & 33 deletions tests/functional/WebIfcApi.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,39 +463,6 @@ describe('WebIfcApi known failures', () => {
ifcApi.CloseModel(failModelID);
})
});
describe("issue:#214", () => {
test("REAL numbers written by SaveModel() are in an invalid format", async () => {
let ifcApi = new WebIFC.IfcAPI();
await ifcApi.Init();
let failModelID = 0;
const exampleIFCPath: string = path.join(__dirname, '../ifcfiles/public/example_issue_214.ifc');
const exampleIFCData = fs.readFileSync(exampleIFCPath);
failModelID = ifcApi.OpenModel(exampleIFCData);
let ifcDatas = ifcApi.SaveModel(failModelID);
let rawIfcString = Utf8ArrayToStr(ifcDatas);

expect(rawIfcString.indexOf("#6=IFCCARTESIANPOINT((0.,0.,0.));")).toBeTruthy();
expect(rawIfcString.indexOf("#13=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.000000000000001E-05,#12,$);")).toBeTruthy();

ifcApi.CloseModel(failModelID);
});
test("when SaveModel() exponents need to be written with a 'E' not 'e'", async () => {
let ifcApi = new WebIFC.IfcAPI();
await ifcApi.Init();
let failModelID = 0;
const exampleIFCPath: string = path.join(__dirname, '../ifcfiles/public/example_issue_214.ifc');
const exampleIFCData = fs.readFileSync(exampleIFCPath);
failModelID = ifcApi.OpenModel(exampleIFCData);
let ifcDatas = ifcApi.SaveModel(failModelID);
let rawIfcString = Utf8ArrayToStr(ifcDatas);
expect(rawIfcString.indexOf("#13=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.000000000000001E-05,#12,$);")).toBeTruthy();
ifcApi.CloseModel(failModelID);
});

test("FILE_NAME header should have 7 attributes not 5", async () => {
expect(true).toBeTruthy();
});
});
})

describe('some use cases', () => {
Expand Down

0 comments on commit 4e51573

Please sign in to comment.