aboutsummaryrefslogtreecommitdiff
path: root/src/suite.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-01 11:49:53 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-01 11:49:53 +0200
commit1f18e740539aed751865ecff9d0f3cba44230e54 (patch)
treee23254751cc5a3be551233efb979a00571f40dc6 /src/suite.py
parent763f02a8b1e69c0e26a088824981d23ba1e5386d (diff)
downloadphilosophers_test-1f18e740539aed751865ecff9d0f3cba44230e54.tar.gz
philosophers_test-1f18e740539aed751865ecff9d0f3cba44230e54.tar.bz2
philosophers_test-1f18e740539aed751865ecff9d0f3cba44230e54.zip
Refactoring file structure, Added summary
Diffstat (limited to 'src/suite.py')
-rw-r--r--src/suite.py59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/suite.py b/src/suite.py
new file mode 100644
index 0000000..d4734a9
--- /dev/null
+++ b/src/suite.py
@@ -0,0 +1,59 @@
+# ############################################################################ #
+# #
+# ::: :::::::: #
+# suite.py :+: :+: :+: #
+# +:+ +:+ +:+ #
+# By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ #
+# +#+#+#+#+#+ +#+ #
+# Created: 2020/10/01 10:41:43 by cacharle #+# #+# #
+# Updated: 2020/10/01 11:37:50 by cacharle ### ########.fr #
+# #
+# ############################################################################ #
+
+import config
+from test import Test
+
+def suite():
+ Test.new_error([])
+ Test.new_error(["a", "a", "a", "a"])
+ Test.new_error(["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "a", "a", "a"])
+ Test.new_error(["10"])
+ Test.new_error(["10", "10"])
+ Test.new_error(["10", "10", "10"])
+ Test.new_error(["10", "10", "10", "10", "10", "10"])
+ Test.new_error(["-1", "10", "10", "10"])
+ Test.new_error(["10", "-1", "10", "10"])
+ Test.new_error(["10", "10", "-1", "10"])
+ Test.new_error(["10", "10", "10", "-1"])
+ Test.new_error(["10", "10", "10", "10", "-1"])
+
+ Test.new_error([str(config.UINT_MAX + 1), "10", "10", "10"])
+ Test.new_error(["10", str(config.UINT_MAX + 1), "10", "10"])
+ Test.new_error(["10", "10", str(config.UINT_MAX + 1), "10"])
+ Test.new_error(["10", "10", "10", str(config.UINT_MAX + 1)])
+ Test.new_error(["10", "10", "10", "10", str(config.UINT_MAX + 1)])
+
+ Test.new_error([str(-config.UINT_MAX), "10", "10", "10"])
+ Test.new_error(["10", str(-config.UINT_MAX), "10", "10"])
+ Test.new_error(["10", "10", str(-config.UINT_MAX), "10"])
+ Test.new_error(["10", "10", "10", str(-config.UINT_MAX)])
+ Test.new_error(["10", "10", "10", "10", str(-config.UINT_MAX)])
+
+ Test(0, 100, 10, 10)
+ Test(1, 100, 10, 10)
+ #
+ # Test(2, 100, 50, 50)
+ # Test(3, 100, 50, 50)
+ # Test(4, 100, 50, 50)
+ # Test(5, 100, 50, 50)
+ # Test(6, 100, 50, 50)
+ # Test(7, 100, 50, 50)
+ #
+ # Test(100, 100, 50, 50)
+ #
+ # Test(10, 100, 100, 10)
+ #
+ # Test(2, 50, 10, 10)
+ # Test(10, 50, 10, 10)
+ # Test(10, 100, 10, 10)
+ # Test(10, 200, 10, 10)