max-mapper / standard-format

converts your code into Standard JavaScript Format
264 stars 59 forks source link

Test for detect continuation ident bug after do-while #87

Closed teintinu closed 9 years ago

teintinu commented 9 years ago

THIS PR HAS ONLY THE TEST NOT THE SOLUTION

expected without the bug:

function x()
{
  var i=0
  do {
    i++
  } while(i<10)
  console.log(i)
}

bug last do lines has wrong indent

function x()
{
  var i=0
  do {
    i++
  } while(i<10)
    console.log(i)
  }
feross commented 9 years ago

Can you put this test in the test/failing folder?

bcomnes commented 9 years ago

Merging this onto 1870dd3fd36885970b8be23ad90093ab0a5a7fd9 its now passing. Yay :] I'll merge it in but I'll probably shuffle things around some.

bcomnes commented 9 years ago

I psyched myself out, still failing actually. Moving to failing.