Exemplo n.º 1
0
void AR_Test_Clip(TSignedSeqPos clip_from, TSignedSeqPos clip_to, const TAlignRange& r, 
                  TSignedSeqPos res_from_1, TSignedSeqPos res_from_2, TSignedSeqPos res_len)
{   
     typedef CRange<TSignedSeqPos>   TRange;

    TAlignRange r1(r);
    TRange clip_1(clip_from, clip_to);
    
    TAlignRange r2 = r1.IntersectionWith(clip_1);
    r1.IntersectWith(clip_1);

    TAlignRange res_1(res_from_1, res_from_2, res_len, r.IsDirect());
    BOOST_CHECK_EQUAL(res_1, r1);
    BOOST_CHECK_EQUAL(res_1, r2);
}
Exemplo n.º 2
0
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
    background (cr);

    clip_0 (cr);
    clip_1 (cr);
    clip_2 (cr);
    clip_3 (cr);

    cairo_set_source_rgb (cr, 0, 0, 0);
    cairo_paint (cr);

    return CAIRO_TEST_SUCCESS;
}