Formatting woes
@@ -8,7 +8,14 @@ use common::{initialize_test, TestParameters};
#[test]
fn test_compute_1() {
- initialize_test(TestParameters::default().specific_failure(Some(wgpu::Backends::GL), None, Some("V3D"), false), |ctx| {
+ initialize_test(
+ TestParameters::default().specific_failure(
+ Some(wgpu::Backends::GL),
+ None,
+ Some("V3D"),
+ false,
+ ),
+ |ctx| {
let input = &[1, 2, 3, 4];
pollster::block_on(assert_execute_gpu(
@@ -17,12 +24,20 @@ fn test_compute_1() {
input,
&[0, 1, 7, 2],
));
- });
+ },
+ );
}
#[test]
fn test_compute_2() {
- initialize_test(TestParameters::default().specific_failure(Some(wgpu::Backends::GL), None, Some("V3D"), false), |ctx| {
+ initialize_test(
+ TestParameters::default().specific_failure(
+ Some(wgpu::Backends::GL),
+ None,
+ Some("V3D"),
+ false,
+ ),
+ |ctx| {
let input = &[5, 23, 10, 9];
pollster::block_on(assert_execute_gpu(
@@ -31,12 +46,20 @@ fn test_compute_2() {
input,
&[5, 15, 6, 19],
));
- });
+ },
+ );
}
#[test]
fn test_compute_overflow() {
- initialize_test(TestParameters::default().specific_failure(Some(wgpu::Backends::GL), None, Some("V3D"), false), |ctx| {
+ initialize_test(
+ TestParameters::default().specific_failure(
+ Some(wgpu::Backends::GL),
+ None,
+ Some("V3D"),
+ false,
+ ),
+ |ctx| {
let input = &[77031, 837799, 8400511, 63728127];
pollster::block_on(assert_execute_gpu(
&ctx.device,
@@ -44,12 +67,15 @@ fn test_compute_overflow() {
input,
&[350, 524, OVERFLOW, OVERFLOW],
));
- });
+ },
+ );
}
#[test]
fn test_multithreaded_compute() {
- initialize_test(TestParameters::default().backend_failures(wgpu::Backends::GL), |ctx| {
+ initialize_test(
+ TestParameters::default().backend_failures(wgpu::Backends::GL),
+ |ctx| {
use std::{sync::mpsc, thread, time::Duration};
let ctx = Arc::new(ctx);
@@ -76,7 +102,8 @@ fn test_multithreaded_compute() {
rx.recv_timeout(Duration::from_secs(10))
.expect("A thread never completed.");
}
- });
+ },
+ );
}
async fn assert_execute_gpu(
