GildedRose-Refactoring-Kata/bash
2023-12-26 12:27:11 +01:00
..
gilded_rose.sh gilded_rose.sh: closer to original 2023-12-26 12:27:11 +01:00
README.md . d README: update field delimiter 2023-12-23 19:46:03 +01:00
texttest_fixture.sh - t verify results 2023-12-23 17:56:14 +01:00
unit_test.sh - t failing unit test 2023-12-23 18:18:38 +01:00
verify.sh - t failing unit test 2023-12-23 18:18:38 +01:00

Requirements

bash and friends (diff, grep, cat)

(Failing) Unit Test

./unit_test.sh

Texttest Fixture

./texttest_fixture.sh

Specify days:

./texttest_fixture.sh 30

Verify againt ThirtyDays/stdout.gr

./verify.sh

BTW

BTW, the script is a pure "function", so this works:

$ echo -e 'Aged Brie|3|5\nOther Item|4|5' |
> ./gilded_rose.sh |
> ./gilded_rose.sh |
> ./gilded_rose.sh
Aged Brie|0|8
Other Item|1|2