~phroa/jmap

c85f236f94d127a5b46041bab8a35a742b7979c9 — Jack Stratton 5 months ago b874468 main
Remove placeholder add()
1 files changed, 2 insertions(+), 10 deletions(-)

M src/main.zig
M src/main.zig => src/main.zig +2 -10
@@ 7,12 7,6 @@ const os = std.os;
const zfetch = @import("zfetch");
const testing = std.testing;

export fn add(a: i32, b: i32) i32 {
    return a + b;
}

const Capability = json.ObjectMap;

const Account = struct {
    const name: []const u8;
    const isPersonal: bool;


@@ 20,6 14,8 @@ const Account = struct {
    const accountCapabilities: []*Capability;
};

const Capability = json.ObjectMap;

const Session = struct {
    const capabilities: []*Capability;
    const accounts: []*Account;


@@ 116,7 112,3 @@ test "login" {

    const session = try login(testing.allocator, host, user, pass);
}

test "basic add functionality" {
    try testing.expect(add(3, 7) == 10);
}