Пример #1
0
def EnableTypoCorrection_ReciprocalOthers_test():
    eq_(flags._EnableTypoCorrection(['-x', 'c++', '-fno-spell-checking']),
        ['-x', 'c++', '-fno-spell-checking'])
Пример #2
0
def EnableTypoCorrection_Trivial_test():
    eq_(flags._EnableTypoCorrection(['-x', 'c++']),
        ['-x', 'c++', '-fspell-checking'])
Пример #3
0
def EnableTypoCorrection_Reciprocal_test():
    eq_(flags._EnableTypoCorrection(['-fno-spell-checking']),
        ['-fno-spell-checking'])
Пример #4
0
def EnableTypoCorrection_Empty_test():
    eq_(flags._EnableTypoCorrection([]), ['-fspell-checking'])
Пример #5
0
def EnableTypoCorrection_ReciprocalOthers_test():
  eq_( flags._EnableTypoCorrection( [ '-x', 'c++', '-fno-spell-checking' ] ),
                                    [ '-x', 'c++', '-fno-spell-checking' ] )
Пример #6
0
def EnableTypoCorrection_Reciprocal_test():
  eq_( flags._EnableTypoCorrection( [ '-fno-spell-checking' ] ),
                                    [ '-fno-spell-checking' ] )
Пример #7
0
def EnableTypoCorrection_Trivial_test():
  eq_( flags._EnableTypoCorrection( [ '-x', 'c++' ] ),
                                    [ '-x', 'c++', '-fspell-checking' ] )
Пример #8
0
def EnableTypoCorrection_Empty_test():
  eq_( flags._EnableTypoCorrection( [] ), [ '-fspell-checking' ] )