MyTestLib is a MyTestEngine done as a library
Every meaningful line has syntax: Key = Value
Spaces between the fields can be unlimited.
Commentary lines start from # symbol.
Rules to follow:
- Keywords Test, Author, Date, Time, Mode, Question can be used in any order and in any place of the text
- Keywords Value, Answer, Answer+ are ignored if placed before keyword Question
- Keywords Value, Answer, Answer+ are considered to be related to the latest occurence of the Question keyword
Supported keywords:
- Test - test name
- Author - Test author
- Date - Creation/Modification date. Must be in format DD.MM.YYYY
- Time - Test time in seconds. Note that this is a time for the whole test.
- Mode - Test mode. Can be either Loyal or Punish. Punish mode means wrong answers give negative points worth question value divided on all wrong answers. Loyal is the default mode and doesn't account negative points.
- Question - Each question begins with keyword Question
- Value - how much points is given question worth
- Answer - Every keyword Answer is counted towards the latest encountered Question keyword
- Answer+ - Correct answers are marked by + suffix
Example test file can be found here -> https://github.com/s4rduk4r/MyTest/blob/master/MyTest/Tests/TestExample.mytest