add Odin lang

This commit is contained in:
Sasha Schwartz authored and Peter Kofler committed 2025-05-04 13:29:08 +02:00
1 parent af3e2244b3
commit eb9b46e34d
5 files changed
+149

No files matched your search

+34
View File
@@ -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)
```