all: zig fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0a1ff43ce5
commit
f807c85232
2 changed files with 11 additions and 11 deletions
|
|
@ -79,7 +79,7 @@ test "connect to device" {
|
|||
const a = try init();
|
||||
defer a.deinit();
|
||||
|
||||
const d = try a.requestDevice(std.testing.allocator,.{ .mode = .output });
|
||||
const d = try a.requestDevice(std.testing.allocator, .{ .mode = .output });
|
||||
defer d.deinit(std.testing.allocator);
|
||||
}
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ test "connect to device from descriptor" {
|
|||
var iter = a.outputDeviceIterator();
|
||||
var device_desc = (try iter.next()) orelse return error.NoDeviceFound;
|
||||
|
||||
const d = try a.requestDevice(std.testing.allocator,device_desc);
|
||||
const d = try a.requestDevice(std.testing.allocator, device_desc);
|
||||
defer d.deinit(std.testing.allocator);
|
||||
}
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ test "requestDevice behavior: null is_raw" {
|
|||
.mode = device_desc.mode,
|
||||
.id = device_desc.id,
|
||||
};
|
||||
try testing.expectError(error.InvalidParameter, a.requestDevice(std.testing.allocator,bad_desc));
|
||||
try testing.expectError(error.InvalidParameter, a.requestDevice(std.testing.allocator, bad_desc));
|
||||
}
|
||||
|
||||
test "requestDevice behavior: null mode" {
|
||||
|
|
@ -121,7 +121,7 @@ test "requestDevice behavior: null mode" {
|
|||
.mode = null,
|
||||
.id = device_desc.id,
|
||||
};
|
||||
try testing.expectError(error.InvalidParameter, a.requestDevice(std.testing.allocator,bad_desc));
|
||||
try testing.expectError(error.InvalidParameter, a.requestDevice(std.testing.allocator, bad_desc));
|
||||
}
|
||||
|
||||
test "requestDevice behavior: invalid id" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue