Skip to content

Commit 8bc7967

Browse files
committed
test entfuzzy::bottom
1 parent 3eae693 commit 8bc7967

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/testmpr.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,19 @@ namespace
317317
assert(f == -1.f);
318318
}
319319
}
320+
321+
void test_entfuzzy_bottom()
322+
{
323+
std::printf("testing entfuzzy::bottom\n");
324+
{
325+
physent p;
326+
p.eyeheight = 1;
327+
p.o = vec(0,0,0);
328+
mpr::EntFuzzy e(&p);
329+
float f = e.bottom();
330+
assert(f == -1.f);
331+
}
332+
}
320333
}
321334

322335
void test_mpr()
@@ -343,4 +356,5 @@ testing mpr functionality\n\
343356
test_entfuzzy_right();
344357
test_entfuzzy_front();
345358
test_entfuzzy_back();
359+
test_entfuzzy_bottom();
346360
}

0 commit comments

Comments
 (0)