#include <boost/test/auto_unit_test.hpp>
+#include <boost/test/floating_point_comparison.hpp>
#include <string>
BOOST_CHECK_EQUAL(s.is_sequence_renderable( 0, 1000, 500), false );
// way fewer basepairs than viewport pixel width
BOOST_CHECK_EQUAL(s.is_sequence_renderable( 0, 10, 500), true);
+
+ BOOST_CHECK_CLOSE((double)s.get_pixel_width(0, 100, 100), 1.0, 1e-6);
+ BOOST_CHECK_CLOSE((double)s.get_pixel_width(0, 1000, 100), 10.0, 1e-6);
}
BOOST_AUTO_TEST_CASE( glsequence_sequence )