From cf00c2249a7d309a2d2d024cf4a7a2e31c7e50b1 Mon Sep 17 00:00:00 2001 From: jefferydeng Date: Thu, 19 Dec 2024 16:47:56 +0800 Subject: [PATCH] fix ut --- src/test/cc_binary_test.py | 4 ++-- src/test/cc_test_test.py | 4 ++-- src/test/test_target_test.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/cc_binary_test.py b/src/test/cc_binary_test.py index 03080b32..a82b789e 100644 --- a/src/test/cc_binary_test.py +++ b/src/test/cc_binary_test.py @@ -33,8 +33,8 @@ def testGenerateRules(self): self.assertCxxFlags(com_string_line) self.assertLinkFlags(string_main_depends_libs) - self.assertIn('liblowercase.a', string_main_depends_libs) - self.assertIn('libuppercase.a', string_main_depends_libs) + self.assertNotIn('liblowercase.a', string_main_depends_libs) + self.assertNotIn('libuppercase.a', string_main_depends_libs) self.assertTrue(self.findCommand(['Hello, world'])) diff --git a/src/test/cc_test_test.py b/src/test/cc_test_test.py index 7a20601e..3fa6a2d6 100644 --- a/src/test/cc_test_test.py +++ b/src/test/cc_test_test.py @@ -35,8 +35,8 @@ def testGenerateRules(self): self.assertCxxFlags(com_string_line) self.assertLinkFlags(string_main_depends_libs) - self.assertIn('liblowercase.a', string_main_depends_libs) - self.assertIn('libuppercase.a', string_main_depends_libs) + self.assertNotIn('liblowercase.a', string_main_depends_libs) + self.assertNotIn('libuppercase.a', string_main_depends_libs) if __name__ == '__main__': diff --git a/src/test/test_target_test.py b/src/test/test_target_test.py index 0ec20a29..ecab27e5 100644 --- a/src/test/test_target_test.py +++ b/src/test/test_target_test.py @@ -34,7 +34,7 @@ def testTestRunnerCorrectly(self): self.assertCxxFlags(com_string_line) self.assertLinkFlags(string_main_depends_libs) - self.assertIn('liblowercase.a', string_main_depends_libs) + self.assertNotIn('liblowercase.a', string_main_depends_libs) if __name__ == '__main__':