Skip to content

Commit

Permalink
Modified test that checks frame and divider areas
Browse files Browse the repository at this point in the history
  • Loading branch information
ggartside committed Nov 16, 2021
1 parent dda263b commit 155a734
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/model/test/SubSurface_GTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1331,14 +1331,16 @@ TEST_F(ModelFixture, Issue_4361) {
// then do the same thing with the areas

WindowPropertyFrameAndDivider frame(model);
frame.setFrameWidth(0.030);

frame.setFrameWidth(0.03);
frame.setDividerWidth(0.05);
frame.setNumberOfHorizontalDividers(2);
frame.setNumberOfVerticalDividers(3);
subSurface.setWindowPropertyFrameAndDivider(frame);

double frameArea = subSurface.frameArea();
EXPECT_NEAR(frameArea, 0.1236, 0.01);
double divArea = subSurface.dividerArea();
EXPECT_DOUBLE_EQ(divArea, 0);
EXPECT_DOUBLE_EQ(divArea, 0.25);

surfaceNetArea = surface.netArea();
subSurfaceGrossArea = subSurface.grossArea();
Expand Down

0 comments on commit 155a734

Please sign in to comment.