Ecohackerfarm / powerplant

Optimize and assist planning your garden
Other
85 stars 21 forks source link

Test that db/companions.js is compatible with the companionship algorithm #23

Closed petteripitkanen closed 5 years ago

petteripitkanen commented 5 years ago

The companionship algorithm calculates a score for a set of crops based on data from 1) our companion database (db/companions.js) and 2) the Practical Plants database (db/practicalplants.js).

Write a test that checks that (1) is compatible with the companionship algorithm. This should assert that if two crops are companions in (1) then the companionship algorithm also determines them compatible. If this assert fails then one of the databases is wrong and should be fixed.

petteripitkanen commented 5 years ago

Done by #57.