Hi everyone, I'm new here and i'm doing and exercise to program a bot in Fortran. I notice in the plattform we have the IDE where we can writte the code but I don't know what is the function of the "Test" category. Is the category "Test" the main program and do i have to create just the functions needed or have i create the whole program in the IDE????
#Help with the metodology from exercism
3 messages · Page 1 of 1 (latest)
The tests are not a category, but a test file to test your solution that you will write in the editor.
For example if the test file says program something_test_main then it may lead you to write module something and write that functionality.
The test file is not meant to be written, that is already done for you.
To show this, here are the tests provided by the Hello World exercise:
program hello_world_test_main
use TesterMain
use hello_world
implicit none
! Test 1: Say Hi!
call assert_equal("Hello, World!", hello(), "Say Hi!")
call test_report()
end program
This is something that we would encourage you to read, and analyze, but you do not have to write it, as it is already here. It will either pass or fail, if you write the program that satisfies the tests.