TheAlgorithms / Solidity

Algorithms and data structures implemented in Solidity
GNU Lesser General Public License v2.1
326 stars 88 forks source link

[TEST] write foundry test for Sorts/SelectionSort.sol #32

Closed mkubdev closed 1 year ago

mkubdev commented 1 year ago
    I will definately look into it. must i write test for this selection sort before it will be merged?

Originally posted by @Chiadikaobixo in https://github.com/TheAlgorithms/Solidity/issues/27#issuecomment-1257686258

Add Foundry test for SelectionSort.sol (ex: BubbleSort.t.sol)

Fazil29 commented 1 year ago

I want to work on it.

Fazil29 commented 1 year ago

Are you guys using truffle or remix for the project? If not then what tools are you guys using.

LuffySama-Dev commented 1 year ago

@Fazil29 As mentioned in the issue you should use the Foundry to write the tests. It is used for writing the unit tests for contracts.

mkubdev commented 1 year ago

@Fazil29 As mentioned in the issue you should use the Foundry to write the tests. It is used for writing the unit tests for contracts.

@Fazil29 Yes, as @Saurabhpatil-dev suggest, you should use Foundry.

We should update the guidelines..

0xSumitBanik commented 1 year ago

@mkubdev , I have created PR for this issue. Added test for SelectionSort

mkubdev commented 1 year ago

Close since ##55 fix it.