コード例 #1
0
ファイル: msvs_test.py プロジェクト: ghub/NVprSDK
 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": ["a.lib", "b.lib", "c.lib", "-lb.lib", "-lb.lib", "d.lib", "a.lib"]}),
         ["c.lib", "b.lib", "d.lib", "a.lib"],
     )
コード例 #2
0
ファイル: msvs_test.py プロジェクト: zhouweiaccp/XobotOS
 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': ['a.lib', 'b.lib', 'c.lib', '-lb.lib',
                                  '-lb.lib', 'd.lib', 'a.lib']}),
     ['c.lib', 'b.lib', 'd.lib', 'a.lib'])
コード例 #3
0
ファイル: msvs_test.py プロジェクト: Danijel00/Weather-app
 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"],
     )