From fffe7908618e0c3c940bdc4a8849d292a2f36d57 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Mon, 28 Oct 2019 17:13:38 +0100
Subject: [PATCH] =?UTF-8?q?[Tests]=20interpreter-test:=C2=A0check=20result?=
 =?UTF-8?q?,=20out=20&=20err?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 unitTesting/interpreter-test.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/unitTesting/interpreter-test.cc b/unitTesting/interpreter-test.cc
index 1937a45..9328aaf 100644
--- a/unitTesting/interpreter-test.cc
+++ b/unitTesting/interpreter-test.cc
@@ -15,8 +15,13 @@ int main(int argc, char** argv) {
   for (int i = 0; i < numTest; ++i) {
     // correct input
     interp.python("print('I am the interpreter')", result, out, err);
+    assert(out.compare("I am the interpreter"));
+    assert(err.length() == 0);
     // incorrect input
     interp.python("print I am the interpreter", result, out, err);
+    assert(result.length() == 0);
+    assert(out.length() == 0);
+    assert(err.length() > 50);
   }
   return 0;
 }
-- 
GitLab