From 8a351c6d267c55445de7b7b40b1de3b16305bd02 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 1 Oct 2020 16:39:47 +0200 Subject: Readded some check --- src/philo/table.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/philo/table.py') 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 +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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") -- cgit