TestPas compiles when I remove the missing unit from the "uses" list, and when I comment the unknown procedure PatchCrt at the beginning of the main program - no idea whether these removals have an effect...
TestASTF has a LOT of issues
- a variable named "Try" - this is a reserved word. Rename it to iTry ("i" for "integer"), or similar.
- a comment line beginning with !
- a comment line "{ Time s" missing the ending }
- Unknown function UpCaseS: You could use Uppercase(S) from the FPC unit SysUtils instead, but this could introduce new issues with your date functions, e.g. DayOfWeek.
- Incomplete ReadLn instructions in procedure TestInitTime
- Procedure TestGetIntMon: Variable GetIntMon has the same name as the tested function GetIntMon - remove the variable, it is not called here anyway
- The same with TestDayOfWeek where an unused variable has the same name as the funtion DayOfWeek.
- Procedure TestDaylightSt: there is a semicolon inside the DayLightSt function parameter list.
...plus many more - I'm giving up here...