diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-27 16:58:35 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-27 16:58:35 +0200 |
| commit | 20e0b28ec3c8e9e0a63759116a32438c18941a59 (patch) | |
| tree | ee426189825867a0d98358154da3660c48ca5957 /src/test/table.py | |
| parent | 861621b9bdbdc7336183597b3ffd4ee161be19f3 (diff) | |
| download | philosophers_test-20e0b28ec3c8e9e0a63759116a32438c18941a59.tar.gz philosophers_test-20e0b28ec3c8e9e0a63759116a32438c18941a59.tar.bz2 philosophers_test-20e0b28ec3c8e9e0a63759116a32438c18941a59.zip | |
Added log checking
Diffstat (limited to 'src/test/table.py')
| -rw-r--r-- | src/test/table.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/table.py b/src/test/table.py deleted file mode 100644 index 6aa1b15..0000000 --- a/src/test/table.py +++ /dev/null @@ -1,23 +0,0 @@ -# ############################################################################ # -# # -# ::: :::::::: # -# table.py :+: :+: :+: # -# +:+ +:+ +:+ # -# By: charles <me@cacharle.xyz> +#+ +:+ +#+ # -# +#+#+#+#+#+ +#+ # -# Created: 2020/09/27 12:44:48 by charles #+# #+# # -# Updated: 2020/09/27 12:54:01 by charles ### ########.fr # -# # -# ############################################################################ # - -class Table: - def __init__(self, philo_num): - self._philos = [Philo(id_) for id_ in range(1, philo_num + 1)] - - def update(self, match): - philo = itertools.first_true(self._philos, pred = lambda x: x.id == match.id) - philo.add_log(match) - - def check(self): - return True - |
