aboutsummaryrefslogtreecommitdiff
path: root/src/philo/table.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-01 16:39:47 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-01 16:39:47 +0200
commit8a351c6d267c55445de7b7b40b1de3b16305bd02 (patch)
tree17e59ab15e809868acdcd14353521a3f11fffce5 /src/philo/table.py
parent1f18e740539aed751865ecff9d0f3cba44230e54 (diff)
downloadphilosophers_test-8a351c6d267c55445de7b7b40b1de3b16305bd02.tar.gz
philosophers_test-8a351c6d267c55445de7b7b40b1de3b16305bd02.tar.bz2
philosophers_test-8a351c6d267c55445de7b7b40b1de3b16305bd02.zip
Readded some check
Diffstat (limited to 'src/philo/table.py')
-rw-r--r--src/philo/table.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/philo/table.py b/src/philo/table.py
index ea93391..56ed331 100644
--- a/src/philo/table.py
+++ b/src/philo/table.py
@@ -6,7 +6,7 @@
# By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/10/01 10:53:29 by cacharle #+# #+# #
-# Updated: 2020/10/01 11:31:44 by cacharle ### ########.fr #
+# Updated: 2020/10/01 14:15:09 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -41,7 +41,7 @@ class Table:
philo.logs.append(log)
# move
if self.dead:
- raise error.Log(self._logs, "should not output after death")
+ raise error.Log(self._logs, "Output after death")
if log.event is Event.DIE:
self.dead = True
@@ -61,7 +61,7 @@ class Table:
fork_used = sum([p.used_forks for p in self._philos])
if fork_used > self._philo_num:
- raise error.Log(self._logs, "using nonexistant forks")
+ raise error.Log(self._logs, "Using nonexistant forks")
for l1, l2 in zip(self._logs, self._logs[1:]):
if l1.timestamp > l2.timestamp:
- raise error.Log(self._logs, "timestamps not in ordered")
+ raise error.Log(self._logs, "Timestamps not in ordered")