Changes
3 changed files (+0/-41)
-
-
@@ -16,6 +16,5 @@ //// SPDX-License-Identifier: GPL-3.0-only test { _ = @import("./version.zig"); _ = @import("./list.zig"); }
-
-
tests/snapshot/version.zig (deleted)
-
@@ -1,39 +0,0 @@// Copyright (C) 2025 Shota FUJI // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. // // SPDX-License-Identifier: GPL-3.0-only const std = @import("std"); const config = @import("config"); const snapshot = @import("./snapshot.zig"); test "version_snapshot.txt" { var env = std.process.EnvMap.init(std.testing.allocator); defer env.deinit(); try env.put("TZ", "UTC"); const result = try std.process.Child.run(.{ .allocator = std.testing.allocator, .argv = &.{ config.bin, "--version" }, .env_map = &env, }); defer std.testing.allocator.free(result.stderr); defer std.testing.allocator.free(result.stdout); try snapshot.expectMatchSnapshot(@src(), &result); }
-
-
tests/snapshot/version_snapshot.txt (deleted)
-
@@ -1,1 +0,0 @@dev
-