fixing and starting ShrubberyCreationForm

This commit is contained in:
2026-02-17 17:49:39 +01:00
parent 838b97e98a
commit 5d62dbd20d
6 changed files with 159 additions and 4 deletions

View File

@@ -6,20 +6,25 @@
/* By: hadi <hadi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/16 22:32:41 by hadi #+# #+# */
/* Updated: 2026/02/17 16:24:37 by hadi ### ########.fr */
/* Updated: 2026/02/17 17:49:09 by hadi ### ########.fr */
/* */
/* ************************************************************************** */
#include "Bureaucrat/Bureaucrat.hpp"
#include "AForm/AForm.hpp"
#include "ShrubberyCreationForm/ShrubberyCreationForm.hpp"
int main()
{
std::cout << "---- ex01 tests ----" << std::endl;
ShrubberyCreationForm form("home");
try {
Bureaucrat angel("Angel", 140);
Bureaucrat angel("Angel", 137);
angel.executeForm(form);
angel.signForm(form);
angel.executeForm(form);
} catch (std::exception &e) {
std::cout << e.what() << std::endl;
}