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:
Alexey 2025-11-28 17:00:17 +03:00
commit 94d771107d
7 changed files with 102 additions and 15 deletions

8
tests/cfg/quests/2.toml Normal file
View 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