MartinPacker / filterCSV

Tools to manipulate CSV files in a format suitable for importing into various mindmapping programs - such as iThoughts, Freemind, and MindNode.
MIT License
32 stars 8 forks source link

Functions should return text instead of printing #5

Closed cclauss closed 4 years ago

cclauss commented 4 years ago

Functions that return the output formats should return reformatted text instead of printing directly. This will allow us to test those functions with different inputs and verify that the outputs match our expectations. This will also give us flexibility to write each function's output to multiple locations. If functions find errors in the input data, they should raise exceptions (ValueError, etc.) so our tests can cover some garbage-in scenarios.

MartinPacker commented 4 years ago

Done and merged. Was "print" branch.