lene / HyperspaceExplorer

Displays four-dimensional objects and functions by projecting them into three-dimensional space. Viewpoint transformations and parameter changes are displayed in real time.
http://hyperspace-expl.sourceforge.net/
GNU General Public License v2.0
3 stars 0 forks source link

Unit tests: expectException #127

Closed lene closed 10 years ago

lene commented 10 years ago

to be used somewhat like

void test_whatevs() {
  ExpectException<NotYetImplementedException> e;
  whatevs();
}

or possibly

void test_whatevs() {
  ExpectException<NotYetImplementedException> e([](){ whatevs(); });
}
lene commented 10 years ago

well, this is what I actually got done:

void test_whatevs() {
  expectException<NotYetImplementedException>([](){ whatevs(); });
}

seems good enough to me, although I'd still prefer the first version. No idea how to make that work, though.