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/1.toml Normal file
View file

@ -0,0 +1,8 @@
# This example demonstrates typical quest
# see main.rs
id = 1
difficulty = "Easy"
reward = 100
name = "Example easy quest"
description = "Answer this quest without any attachments or comments"
answer = "Accept the answer if it has no attachments and an empty comment"