~~ conditionalExpression.operatorPosition: sameLine, conditionalExpression.preferSingleLine: false, lineWidth: 40 ~~
== should format ==
test? 1: 2;
test
    ? /* test */ 1: 2;
test ? 1
: 2;
test ?
    /* test */ 1 :
    2;

[expect]
test ? 1 : 2;
test ?
    /* test */ 1 :
    2;
test ?
    1 :
    2;
test ?
    /* test */ 1 :
    2;

== should not indent if the first line is a comment ==
test
    ? // comment
        test
    : // comment
        test

[expect]
test ?
    // comment
    test :
    // comment
    test;

== should handle moving comments before the question token to now be after ==
test
    // testing
    ?  test
    : test;

[expect]
test ?
    // testing
    test :
    test;

== should handle comments moving ==
test /* 0 */ ? /* 1 */ test /* 2 */ : /* 3 */ asdf /* 4 */;
test /* 0 */
    /* 1 */ ? /* 2 */ test /* 3 */
     /* 4 */ : /* 5 */ asdf /* 6 */;

[expect]
test /* 0 */ ?
    /* 1 */ test /* 2 */ :
    /* 3 */ asdf /* 4 */;
test /* 0 */ ?
    /* 1 */ /* 2 */ test /* 3 */ :
    /* 4 */ /* 5 */ asdf /* 6 */;
