Detect constants.
Generate tests using detected constants and write-test.