「🔨」 fix: added some test on ex02
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/12/23 14:01:11 by adjoly #+# #+# */
|
/* Created: 2024/12/23 14:01:11 by adjoly #+# #+# */
|
||||||
/* Updated: 2025/04/03 15:49:50 by adjoly ### ########.fr */
|
/* Updated: 2025/04/09 16:20:39 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -40,14 +40,13 @@ int main(void) {
|
|||||||
knl++;
|
knl++;
|
||||||
knl++;
|
knl++;
|
||||||
knl++;
|
knl++;
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &) {
|
||||||
std::cerr << "Error : " << e.what() << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ShrubberyCreationForm s;
|
ShrubberyCreationForm s;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
s.beSigned(knl);
|
knl.signForm(s);
|
||||||
} catch (std::exception &e) {
|
} catch (std::exception &e) {
|
||||||
knl.executeForm(s);
|
knl.executeForm(s);
|
||||||
std::cerr << "Error : " << e.what() << std::endl;
|
std::cerr << "Error : " << e.what() << std::endl;
|
||||||
|
Reference in New Issue
Block a user