Skip to content

Commit

Permalink
Add a simple test for [] indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Jun 1, 2018
1 parent 195d714 commit c444308
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/extra/test_autoindent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,14 @@ def le input, size
ri( '1' , 1)
le(')' , 0)
end

would '[]' do
ri('[' , 1)
ri( '0' , 1)
ri( '1' , 1)
ri( '[' , 2)
ri( '2' , 2)
le( ']' , 1)
le(']' , 0)
end
end

0 comments on commit c444308

Please sign in to comment.