Skip to content

v0.4.0

Compare
Choose a tag to compare
@jonatanpedersen jonatanpedersen released this 13 May 08:55
· 48 commits to master since this release

v0.4.0 introduces automatic detection of indentation characters. It works with any number of characters, and it will detect changes to indentation characters as well.

The behaviour is as follows (numbers are spaces):

selectIndent
      given arguments of 4 as ours, 2 as base and 2 as theirs
        ✓ should return 4
      given arguments of 4 as ours, 4 as base and 2 as theirs
        ✓ should return 2
      given arguments of 4 as ours, 4 as base and 4 as theirs
        ✓ should return 4
      given arguments of 2 as ours, 4 as base and 2 as theirs
        ✓ should return 2
      given arguments of 2 as ours, 2 as base and 4 as theirs
        ✓ should return 4
      given arguments of 2 as ours, 4 as base and 4 as theirs
        ✓ should return 2

See tests for more details.