| author | |
| committer | |
| log | 54c2e792a3916fa227322f62bfe8f5a01a25aac4 |
| tree | 7249958639cc2c1cecb668cfbceaf36da6711870 |
| parent | 9c1edaafed430d8e85175781781eba6214e4cb13 |
3 files changed, 6 insertions(+), 1 deletions(-)
licenses.txt+1| ... | ... | @@ -1,5 +1,6 @@ |
| 1 | 1 | MIT: |
| 2 | 2 | = https://spdx.org/licenses/MIT |
| 3 | 3 | - This |
| 4 | - git https://github.com/nektro/zig-expect | |
| 4 | 5 | - git https://github.com/nektro/zig-extras |
| 5 | 6 | - git https://github.com/yaml/libyaml |
test.zig+2-1| ... | ... | @@ -1,5 +1,6 @@ |
| 1 | 1 | const std = @import("std"); |
| 2 | 2 | const yaml = @import("yaml"); |
| 3 | const expect = @import("expect").expect; | |
| 3 | 4 | |
| 4 | 5 | const file = @embedFile("./zigmod.yml"); |
| 5 | 6 | |
| ... | ... | @@ -7,5 +8,5 @@ test { |
| 7 | 8 | const doc = try yaml.parse(std.testing.allocator, file); |
| 8 | 9 | defer doc.deinit(std.testing.allocator); |
| 9 | 10 | |
| 10 | try std.testing.expectEqualStrings("g982zq6e8wsvnmduerpbf8787hu85brugmngn8wf", doc.mapping.get_string("id").?); | |
| 11 | try expect(doc.mapping.get_string("id").?).toEqualString("g982zq6e8wsvnmduerpbf8787hu85brugmngn8wf"); | |
| 11 | 12 | } |
zigmod.yml+3| ... | ... | @@ -26,3 +26,6 @@ dependencies: |
| 26 | 26 | - src/writer.c |
| 27 | 27 | |
| 28 | 28 | - src: git https://github.com/nektro/zig-extras |
| 29 | ||
| 30 | root_dependencies: | |
| 31 | - src: git https://github.com/nektro/zig-expect |