3 ms·
Nice work! I like the little test framework you built. Have you considered making runTest a macro so that you can print the name of the test along with the te
by elevation 1y ago
Nice work! I like the little test framework you built. Have you considered making runTest a macro so that you can print the name of the test along with the test result?
- ashtonjamesd 1y agoThat's a very good idea actually and I had wanted to do that but it didn't click that you could do that with a macro! Thank you, I'll will implement that :)
- elevation 1y agoFor the ultimate in readable test reports, you can prettify the test name by: * dropping the prefix "test_" * substituting the "_" characters in the function for whitespace * uppercasing the first letter of each word. So `test_tokenize_simple_model` becomes "Tokenize Simple Model".