From 25a19c956f673e3da0d87d688984818616be7219 Mon Sep 17 00:00:00 2001 From: Nicky Meuleman Date: Mon, 28 Oct 2024 00:55:25 +0100 Subject: [PATCH] add valgrind to license checks --- license/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/license/__init__.py b/license/__init__.py index 19950b4..7944286 100644 --- a/license/__init__.py +++ b/license/__init__.py @@ -18,4 +18,10 @@ def compiles(): @check50.check(compiles) def valid(): """license prints all plates.""" - check50.run("./license plates.txt").stdout("11ZT00\n1KAD21\n78ZZ01\n99ZZ11\n72ZZ21\n98ZZ31\n44ZW41\n34ZZ51") \ No newline at end of file + check50.run("./license plates.txt").stdout("11ZT00\n1KAD21\n78ZZ01\n99ZZ11\n72ZZ21\n98ZZ31\n44ZW41\n34ZZ51") + + +@check50.check(compiles) +def frees_memory(): + """results in no memory leakages""" + check50.c.valgrind("./license plates.txt").exit(0)