コード例 #1
0
ファイル: test_cmake.py プロジェクト: stjordanis/swift-2
 def test_extend_with_other_options(self):
     options = CMakeOptions()
     options.define('FOO', 'foo')
     options.define('BAR', True)
     derived = CMakeOptions()
     derived.extend(options)
     self.assertIn('-DFOO=foo', derived)
     self.assertIn('-DBAR=TRUE', derived)
コード例 #2
0
ファイル: test_cmake.py プロジェクト: stjordanis/swift-2
 def test_extend_with_tuples(self):
     options = CMakeOptions()
     options.extend([('FOO', 'foo'), ('BAR', True)])
     self.assertIn('-DFOO=foo', options)
     self.assertIn('-DBAR=TRUE', options)