Update tests

This commit is contained in:
topecongiro 2017-06-19 11:25:21 +09:00
parent 0b13420943
commit 482675cf58
3 changed files with 36 additions and 12 deletions

View file

@ -45,3 +45,8 @@ fn issue775() {
mk_object(&[("d".to_string(), String("".to_string()))])]))]);
}
}
fn issue1725() {
bench_antialiased_lines!(bench_draw_antialiased_line_segment_diagonal, (10, 10), (450, 450));
bench_antialiased_lines!(bench_draw_antialiased_line_segment_shallow, (10, 10), (450, 80));
}

View file

@ -257,10 +257,13 @@ fn combine_block() {
foo(param)
});
do_thing(x, (1, 2, 3, |param| {
action();
foo(param)
}));
do_thing(
x,
(1, 2, 3, |param| {
action();
foo(param)
}),
);
Ok(some_function(
lllllllllong_argument_one,

View file

@ -47,14 +47,17 @@ fn b() {
}
fn issue550() {
self.visitor.visit_volume(self.level.sector_id(sector), (
floor_y,
if is_sky_flat(ceil_tex) {
from_wad_height(self.height_range.1)
} else {
ceil_y
},
));
self.visitor.visit_volume(
self.level.sector_id(sector),
(
floor_y,
if is_sky_flat(ceil_tex) {
from_wad_height(self.height_range.1)
} else {
ceil_y
},
),
);
}
fn issue775() {
@ -75,3 +78,16 @@ fn issue775() {
);
}
}
fn issue1725() {
bench_antialiased_lines!(
bench_draw_antialiased_line_segment_diagonal,
(10, 10),
(450, 450)
);
bench_antialiased_lines!(
bench_draw_antialiased_line_segment_shallow,
(10, 10),
(450, 80)
);
}