Sha256: bf34f0ac9f3e82448d28e85974761f032f2347ba9522828bf60d3fa57ceb9f70
Contents?: true
Size: 1018 Bytes
Versions: 51
Compression:
Stored size: 1018 Bytes
Contents
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Unit tests for the msvs.py file. """ import gyp.generator.msvs as msvs import unittest import StringIO class TestSequenceFunctions(unittest.TestCase): def setUp(self): self.stderr = StringIO.StringIO() def test_GetLibraries(self): self.assertEqual( msvs._GetLibraries({}), []) self.assertEqual( msvs._GetLibraries({'libraries': []}), []) self.assertEqual( msvs._GetLibraries({'other':'foo', 'libraries': ['a.lib']}), ['a.lib']) self.assertEqual( msvs._GetLibraries({'libraries': ['-la']}), ['a.lib']) self.assertEqual( msvs._GetLibraries({'libraries': ['a.lib', 'b.lib', 'c.lib', '-lb.lib', '-lb.lib', 'd.lib', 'a.lib']}), ['c.lib', 'b.lib', 'd.lib', 'a.lib']) if __name__ == '__main__': unittest.main()
Version data entries
51 entries across 44 versions & 19 rubygems