extinctsion / Hacktoberfest2023

Hacktoberfest 2023 OPEN FIRST Pull Request 🎉
MIT License
12 stars 105 forks source link

Write test cases for the methods in that given language. #26

Open extinctsion opened 1 year ago

extinctsion commented 1 year ago

Write test cases by creating a test folder in that given language folder. For ex- write test cases for python in python -> tests -> test_cases.py

Ydvaaman commented 1 year ago

Hey @extinctsion can you gave more information about the test cases. You need test cases of the given questions which were already present in the repo?

extinctsion commented 1 year ago

Test cases for the given methods in the repo.

devashishonline commented 1 year ago

I have two questions.

1.I want to know that do you want the test cases in the form of assert statements .

2.And should I include this inside the same file like we have the file GCD.cpp in CPP folder so should i make another folder for test cases and include the code and test cases inside it.

extinctsion commented 1 year ago

Make a different folder inside cpp if you are writing test cases for cpp. Write test cases using the standard naming conventions.

If you have any doubt, reply to this thread. Also, write a minimum of 100 tests per methods.

Use chatgpt for your assistance.

codeudi commented 1 year ago

we have to write the test cases for the programs/algorithms which are present in the folder ? and whether do we have to create a seperate test case file for each program ?

extinctsion commented 1 year ago

Yes, spereate test cases for each files.

extinctsion commented 1 year ago

you can write the test cases in the same file for each program.