test: Initial unit testing
- Test quests vector loading - Test default quest on empty fields - Test correct quest - Fixed config paths handling
This commit is contained in:
parent
a5eac1b64f
commit
94d771107d
7 changed files with 102 additions and 15 deletions
8
tests/cfg/quests/2.toml
Normal file
8
tests/cfg/quests/2.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# This example demonstrates incorrect quest which will not be loaded from config
|
||||
# see main.rs
|
||||
id = 133713371337
|
||||
difficulty = sick
|
||||
reward = an infinite amount of coffee
|
||||
name = "Impossible quest"
|
||||
description = "This quest won't be loaded in the game, therefore you can't solve it"
|
||||
answer = 42
|
||||
Loading…
Add table
Add a link
Reference in a new issue