'Regression test for https://github.com/astropy/astropy/issues/3282'

def test_final_continue_card_ampersand_removal_on_long_comments(self):

    c = fits.Card('TEST', ('long    value' * 10), ('long    comment    &' * 10))
    assert (str(c) == "TEST                =    'long    valuelong    valuelong    valuelong    valuelong    valuelong    valuelong    &'        CONTINUE        'valuelong    valuelong    valuelong    value&'                                                                                                                                CONTINUE        '&'    /    long    comment    &long    comment    &long    comment    &long    comment    &long                CONTINUE        '&'    /    comment    &long    comment    &long    comment    &long    comment    &long    comment    CONTINUE        ''    /    &long    comment    &                                                                                                                                                                                                        ")
