mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-14 01:55:46 +00:00
Add Zig implementation
This commit is contained in:
1 parent
8e9e31f9b8
commit
152c38549b
6 files changed
+240
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# Gilded Rose starting position in Zig
|
||||
|
||||
I assume you have [installed](https://ziglang.org/learn/getting-started/#installing-zig) `zig` on your system.
|
||||
|
||||
## Run unit tests from the command line
|
||||
|
||||
```sh
|
||||
$ zig build test
|
||||
```
|
||||
|
||||
## Run the TextTest fixture on the command line
|
||||
|
||||
Build and install the executable
|
||||
|
||||
```sh
|
||||
$ zig build
|
||||
```
|
||||
|
||||
Execute it on the command line with an argument for the number of days:
|
||||
|
||||
```sh
|
||||
$ ./zig/zig-out/bin/zig 10
|
||||
```
|
||||
|
||||
## Run the TextTest approval test that comes with this project
|
||||
|
||||
There are instructions in the [TextTest Readme](../texttests/README.md) for setting up TextTest.
|
||||
You will need to specify the executable in [config.gr](../texttests/config.gr).
|
||||
Uncomment this line to use it:
|
||||
|
||||
```
|
||||
#executable:${TEXTTEST_HOME}/zig/zig-out/bin/zig
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user