コード例 #1
0
ファイル: flags_test.py プロジェクト: snubbykins/vim
def SanitizeFlags_ArchRemoved_test():
    expected = ['-foo', '-bar']
    to_remove = ['-arch', 'arch_of_evil']

    eq_(expected, list(flags._SanitizeFlags(expected + to_remove)))

    eq_(expected, list(flags._SanitizeFlags(to_remove + expected)))

    eq_(expected,
        list(flags._SanitizeFlags(expected[:1] + to_remove + expected[-1:])))
コード例 #2
0
def SanitizeFlags_ArchRemoved_test():
  expected = [ '-foo', '-bar' ]
  to_remove = [ '-arch', 'arch_of_evil' ]

  eq_( expected,
       list( flags._SanitizeFlags( expected + to_remove ) ) )

  eq_( expected,
       list( flags._SanitizeFlags( to_remove + expected ) ) )

  eq_( expected,
       list( flags._SanitizeFlags(
         expected[ :1 ] + to_remove + expected[ -1: ] ) ) )
コード例 #3
0
def SanitizeFlags_Passthrough_test():
  eq_( [ '-foo', '-bar' ],
       list( flags._SanitizeFlags( [ '-foo', '-bar' ] ) ) )
コード例 #4
0
ファイル: flags_test.py プロジェクト: snubbykins/vim
def SanitizeFlags_Passthrough_test():
    eq_(['-foo', '-bar'], list(flags._SanitizeFlags(['-foo', '-bar'])))