Added testees string array
parent
50d0a243fe
commit
0f046689c0
|
@ -5,18 +5,28 @@ const Timestamp = struct {
|
||||||
minutes: u64,
|
minutes: u64,
|
||||||
};
|
};
|
||||||
|
|
||||||
const testees = undefined;
|
const testees:[]const []const u8 = &[_][] const u8 {
|
||||||
const number_of_testees: u64 = undefined; // len von testees
|
"Nastja",
|
||||||
|
"Vikkes",
|
||||||
|
"Group 3",
|
||||||
|
};
|
||||||
|
const number_of_testees: u64 = testees.len; // len von testees
|
||||||
const total_minutes: u64 = 60; // Gesamte Dauer in min
|
const total_minutes: u64 = 60; // Gesamte Dauer in min
|
||||||
const pause_minutes: u64 = 2; // Länge der Pause zwischen 2 Testaten
|
const pause_minutes: u64 = 2; // Länge der Pause zwischen 2 Testaten
|
||||||
|
|
||||||
|
|
||||||
pub fn main () !void {
|
pub fn main () !void {
|
||||||
|
const writer = std.io.getStdOut().writer();
|
||||||
var testStamp = Timestamp {
|
var testStamp = Timestamp {
|
||||||
.hours = 13,
|
.hours = 13,
|
||||||
.minutes = 5,
|
.minutes = 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try writer.print("Amount tests: {d} \n", .{number_of_testees});
|
||||||
|
for (testees) |row| {
|
||||||
|
try writer.print("Name: {s} \n", .{row});
|
||||||
|
}
|
||||||
|
|
||||||
try printTimestamp(&testStamp);
|
try printTimestamp(&testStamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue