Commit f6b3eedf authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

tests/estim/font_boldness.cc: Make the test deterministic.

parent 1eb0e9ab
2011-09-07 Guillaume Lazzara <z@lrde.epita.fr>
* tests/estim/font_boldness.cc: Make the test deterministic.
2011-09-06 Guillaume Lazzara <z@lrde.epita.fr>
* tests/img/several_objects.pgm: Add a new test image.
......
......@@ -38,9 +38,11 @@ int main()
image2d<bool> input;
io::pbm::load(input, SCRIBO_IMG_DIR "/phillip.pbm");
float val = scribo::estim::font_boldness(input);
volatile float val = scribo::estim::font_boldness(input);
val = ((int)(val * 100) / 100.f);
mln_assertion(((int)(val * 100) / 100.f) == 18.44f);
volatile float ref = 18.44f;
mln_assertion(val == ref);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment