mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-11-14 07:10:48 -05:00
28 lines
682 B
Zig
28 lines
682 B
Zig
const std = @import("std");
|
|
const testing = std.testing;
|
|
|
|
const eliuds_eggs = @import("eliuds_eggs.zig");
|
|
|
|
test "0 eggs" {
|
|
const expected: usize = 0;
|
|
const actual = eliuds_eggs.eggCount(0);
|
|
try testing.expectEqual(expected, actual);
|
|
}
|
|
|
|
test "1 egg" {
|
|
const expected: usize = 1;
|
|
const actual = eliuds_eggs.eggCount(16);
|
|
try testing.expectEqual(expected, actual);
|
|
}
|
|
|
|
test "4 eggs" {
|
|
const expected: usize = 4;
|
|
const actual = eliuds_eggs.eggCount(89);
|
|
try testing.expectEqual(expected, actual);
|
|
}
|
|
|
|
test "13 eggs" {
|
|
const expected: usize = 13;
|
|
const actual = eliuds_eggs.eggCount(2000000000);
|
|
try testing.expectEqual(expected, actual);
|
|
}
|