finish arraylist updates

This commit is contained in:
Luna 2020-05-12 17:48:15 -03:00
parent 0c2cd5638e
commit 3de84b5a23
2 changed files with 5 additions and 5 deletions

View file

@ -359,7 +359,7 @@ test "noop" {
defer cmds.deinit(); defer cmds.deinit();
std.testing.expectEqual(cmds.len, 1); std.testing.expectEqual(cmds.len, 1);
std.testing.expectEqual(cmds.at(0).command, .Noop); std.testing.expectEqual(cmds.items[0].command, .Noop);
} }
test "load, phaser, quicksave" { test "load, phaser, quicksave" {
@ -376,7 +376,7 @@ test "load, phaser, quicksave" {
defer cmds.deinit(); defer cmds.deinit();
std.testing.expectEqual(cmds.len, 3); std.testing.expectEqual(cmds.len, 3);
std.testing.expectEqual(cmds.at(0).command, .Load); std.testing.expectEqual(cmds.items[0].command, .Load);
std.testing.expectEqual(cmds.at(1).command, .Phaser); std.testing.expectEqual(cmds.items[1].command, .Phaser);
std.testing.expectEqual(cmds.at(2).command, .Quicksave); std.testing.expectEqual(cmds.items[2].command, .Quicksave);
} }

View file

@ -150,7 +150,7 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
std.debug.warn("repl: error while parsing: {}\n", .{err}); std.debug.warn("repl: error while parsing: {}\n", .{err});
continue; continue;
}; };
current = cmds_parsed.at(0); current = cmds_parsed.items[0];
// by cloning the parent runner, we can iteratively write // by cloning the parent runner, we can iteratively write
// whatever command we want and only commit the good results // whatever command we want and only commit the good results