Make it easier to hack on strictness
diff --git a/pkgs/markdown/tool/stats.dart b/pkgs/markdown/tool/stats.dart index 529ba4b..2cec692 100644 --- a/pkgs/markdown/tool/stats.dart +++ b/pkgs/markdown/tool/stats.dart
@@ -84,6 +84,10 @@ ${dataCase.input}<<< ${dataCase.expectedOutput}''').join(); +/// Set this to `true` and rerun `--update-files` to ease finding easy strict +/// fixes. +const _improveStrict = false; + Future<void> _processConfig( String testPrefix, bool raw, @@ -113,7 +117,10 @@ units.add(DataCase( front_matter: result.testCase.toString(), input: result.testCase.markdown, - expectedOutput: result.result, + expectedOutput: + (_improveStrict && result.compareLevel == CompareLevel.loose) + ? result.testCase.html + : result.result, )); var nestedMap = scores.putIfAbsent(