diff --git a/licenses.txt b/licenses.txt index bc7f44664c7a0ad2be9b7aa76dcb5fea83c0dda1..6edb1aa39ea830d6bc4bfecad3e793a0ce495c1e 100644 --- a/licenses.txt +++ b/licenses.txt @@ -1,5 +1,6 @@ MIT: = https://spdx.org/licenses/MIT - This +- git https://github.com/nektro/zig-expect - git https://github.com/nektro/zig-extras - git https://github.com/yaml/libyaml diff --git a/test.zig b/test.zig index dfe486e0cb612b59fc476cc13beca1bb1a2cd1d2..70819b5616793be6465ad6036ff380663ef5cce3 100644 --- a/test.zig +++ b/test.zig @@ -1,5 +1,6 @@ const std = @import("std"); const yaml = @import("yaml"); +const expect = @import("expect").expect; const file = @embedFile("./zigmod.yml"); @@ -7,5 +8,5 @@ test { const doc = try yaml.parse(std.testing.allocator, file); defer doc.deinit(std.testing.allocator); - try std.testing.expectEqualStrings("g982zq6e8wsvnmduerpbf8787hu85brugmngn8wf", doc.mapping.get_string("id").?); + try expect(doc.mapping.get_string("id").?).toEqualString("g982zq6e8wsvnmduerpbf8787hu85brugmngn8wf"); } diff --git a/zigmod.yml b/zigmod.yml index 7460596d250862e4dcaf47fcf4d0de2fdad3f526..99f39ec77cf268d2d064dfe895b83f096f9bbd45 100644 --- a/zigmod.yml +++ b/zigmod.yml @@ -26,3 +26,6 @@ dependencies: - src/writer.c - src: git https://github.com/nektro/zig-extras + +root_dependencies: + - src: git https://github.com/nektro/zig-expect