GildedRose-Refactoring-Kata/zig
2024-06-02 17:15:37 +02:00
..
src Add Zig implementation 2024-06-02 17:15:37 +02:00
.gitignore Add Zig implementation 2024-06-02 17:15:37 +02:00
build.zig Add Zig implementation 2024-06-02 17:15:37 +02:00
README.md Add Zig implementation 2024-06-02 17:15:37 +02:00

Gilded Rose starting position in Zig

I assume you have installed zig on your system.

Run unit tests from the command line

$ zig build test

Run the TextTest fixture on the command line

Build and install the executable

$ zig build

Execute it on the command line with an argument for the number of days:

$ ./zig/zig-out/bin/zig 10

Run the TextTest approval test that comes with this project

There are instructions in the TextTest Readme for setting up TextTest. You will need to specify the executable in config.gr. Uncomment this line to use it:

#executable:${TEXTTEST_HOME}/zig/zig-out/bin/zig