this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: add field-level assertions for task structure

- verify status is .pending, id is non-empty, created_at is set on new tasks

Ben cdcc1618 6126d2eb

+3
+3
src/core/task.zig
··· 176 176 const tasks = try storage.load_tasks(arena.allocator(), tmp_dir.dir); 177 177 try std.testing.expectEqual(tasks.len, 1); 178 178 try std.testing.expectEqualStrings(tasks[0].title, "Test Task"); 179 + try std.testing.expectEqual(tasks[0].status, .pending); 180 + try std.testing.expect(tasks[0].id.len > 0); 181 + try std.testing.expect(tasks[0].created_at > 0); 179 182 } 180 183 181 184 test "delete task" {