コード例 #1
0
ファイル: test.py プロジェクト: Squareys/corrade
 def test_local(self):
     self.assertEqual(sort_includes([
         "#include \"world.h\"\n",
         "#include \"hello.h\"\n"
     ]), [
         "#include \"hello.h\"\n",
         "#include \"world.h\"\n"
     ])
コード例 #2
0
ファイル: test.py プロジェクト: vladimirgamalyan/boxx
 def test_local(self):
     self.assertEqual(sort_includes([
         "#include \"world.h\"\n",
         "#include \"hello.h\"\n"
     ]), [
         "#include \"hello.h\"\n",
         "#include \"world.h\"\n"
     ])
コード例 #3
0
ファイル: test.py プロジェクト: ondrej-vesely/GEO1004-hw3
 def test_mixed(self):
     self.assertEqual(
         sort_includes([
             "#include <string>\n", "#include \"noexpand.h\"\n",
             "#include \"neither.h\"\n", "#include <cstring>\n"
         ]), [
             "#include <cstring>\n", "#include <string>\n", "\n",
             "#include \"neither.h\"\n", "#include \"noexpand.h\"\n"
         ])
コード例 #4
0
ファイル: test.py プロジェクト: ondrej-vesely/GEO1004-hw3
 def test_system(self):
     self.assertEqual(
         sort_includes([
             "#include <thread>\n", "#include <cstring>\n",
             "#include <string>\n"
         ]), [
             "#include <cstring>\n", "#include <string>\n",
             "#include <thread>\n"
         ])
コード例 #5
0
ファイル: test.py プロジェクト: Squareys/corrade
 def test_system(self):
     self.assertEqual(sort_includes([
         "#include <thread>\n",
         "#include <cstring>\n",
         "#include <string>\n"
     ]), [
         "#include <cstring>\n",
         "#include <string>\n",
         "#include <thread>\n"
     ])
コード例 #6
0
ファイル: test.py プロジェクト: Squareys/corrade
 def test_mixed(self):
     self.assertEqual(sort_includes([
         "#include <string>\n",
         "#include \"noexpand.h\"\n",
         "#include \"neither.h\"\n",
         "#include <cstring>\n"
     ]), [
         "#include <cstring>\n",
         "#include <string>\n",
         "\n",
         "#include \"neither.h\"\n",
         "#include \"noexpand.h\"\n"
     ])