Printf during test execution

Whenever I have a printf as part of a function which is called during a test, these prints are not printed to the terminal. Where do they go?

It would be very helpful to be able to print out e.g. variable values at key points of our functions in order to facilitate debugging.

The standard input is redirected to avoid clutter in functions that actually print something.
You can use the standard error stream to print messages as shown in printTestFeedback and compareFeedback.

You could also use the debugging facilities of VSCode together with breakpoints to view the variable values.

If you don’t want clutter in your output for ‘make check’ you can also make your own tests write certain things to files, such as a printout of the Trie or outputs of functions. This has the added benefit of you being able to compare outputs even after using ‘clear’ in the console.