All strings need to be surrounded with double quotes, so I updated the Makefile to reflect this.
I also added a task to the Makefile to test ignoring newlines and whitespace between the expected and actual output. If there is a difference, the output isn't super helpful, but it will at least pass even if the formatting is different. This way I can more easily catch issues, rather than trying to manually check the outputs.
I guess diff -w doesn't work with newlines, so I'm wondering if there's a better way to do this?
Regex flags was also undefined in the expected output, when no flags return an empty string.
All strings need to be surrounded with double quotes, so I updated the Makefile to reflect this.
I also added a task to the Makefile to test ignoring newlines and whitespace between the expected and actual output. If there is a difference, the output isn't super helpful, but it will at least pass even if the formatting is different. This way I can more easily catch issues, rather than trying to manually check the outputs.
I guess
diff -w
doesn't work with newlines, so I'm wondering if there's a better way to do this?Regex flags was also
undefined
in the expected output, when no flags return an empty string.