git-graph icon indicating copy to clipboard operation
git-graph copied to clipboard

Implement `Default` for `Settings` struct

Open KarlHeitmann opened this issue 2 years ago • 1 comments

Can I implement Default for Settings struct? I want to build more tests for this app, on this app is important to know the input/output of certain key functions. For example this one: print_unicode, you send it a GitGraph as input argument and it outputs a triplet of String<Vec>

By having the tests we can have living documentation on what every function has. A Default implementation for Settings will help me to build test data on the tests.

KarlHeitmann avatar Jun 25 '23 01:06 KarlHeitmann

Sure, I don't see any arguments against that.

mlange-42 avatar Jul 06 '23 08:07 mlange-42