mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-18 03:45:04 +00:00
add Odin lang
This commit is contained in:
1 parent
af3e2244b3
commit
eb9b46e34d
5 files changed
+149
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# Gilded Rose starting position in Odin
|
||||
|
||||
Learn how to install Odin on your system [here](https://odin-lang.org/docs/install/)
|
||||
|
||||
## Run unit tests from the command line
|
||||
```
|
||||
$ odin test tests
|
||||
```
|
||||
## Run the TextTest fixture on the command line
|
||||
Build and install the executable
|
||||
|
||||
```
|
||||
$ odin build gilded_rose
|
||||
```
|
||||
|
||||
Execute it on the command line with an argument for the number of days:
|
||||
|
||||
### macOS:
|
||||
|
||||
```
|
||||
$ ./gilded_rose.bin 10
|
||||
```
|
||||
### Windows:
|
||||
|
||||
```
|
||||
$ ./gilded_rose.exe 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}/odin/gilded_rose(include your OS executable extension here)
|
||||
```
|
||||
Reference in new issue
Block a user