Refactored a bit line dashed mode and added tests for it