import unittest
import brainfuck

test_cases = [("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.", "Hello World!\n")]

class InterpreterTestCase(unittest.TestCase):
    def setUp(self):
        self.interpreter = brainfuck.BrainfuckInterpreter()
    def runTest(self):
        for case in test_cases:
            self.assertEqual(case[1], self.interpreter.eval(case[0]))

import unittest
import brainfuck

hello_case = ("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.", "Hello World!\n")

class InterpreterTestCase(unittest.TestCase):
    def setUp(self):
        self.interpreter = brainfuck.BrainfuckInterpreter()
    def test_hello_world(self):
        self.assertEqual(hello_case[1], self.interpreter.eval(hello_case[0]))
    def test_missing_parenthesis(self):
        self.assertRaises(SyntaxError, self.interpreter.eval, '[++]+]')

Add unittest for missing parenthesis
Add unittest for missing parenthesis

  import unittest
  import brainfuck
  
- test_cases = [("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.", "Hello World!\n")]
+ hello_case = ("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.", "Hello World!\n")
  
  class InterpreterTestCase(unittest.TestCase):
      def setUp(self):
          self.interpreter = brainfuck.BrainfuckInterpreter()
+     def test_hello_world(self):
-     def runTest(self):
-         for case in test_cases:
-             self.assertEqual(case[1], self.interpreter.eval(case[0]))
+         self.assertEqual(hello_case[1], self.interpreter.eval(hello_case[0]))
+     def test_missing_parenthesis(self):
+         self.assertRaises(SyntaxError, self.interpreter.eval, '[++]+]')
  
Add unittest for missing parenthesis
## Code Before:
import unittest
import brainfuck

test_cases = [("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.", "Hello World!\n")]

class InterpreterTestCase(unittest.TestCase):
    def setUp(self):
        self.interpreter = brainfuck.BrainfuckInterpreter()
    def runTest(self):
        for case in test_cases:
            self.assertEqual(case[1], self.interpreter.eval(case[0]))

## Instruction:
Add unittest for missing parenthesis
## Code After:
import unittest
import brainfuck

hello_case = ("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.", "Hello World!\n")

class InterpreterTestCase(unittest.TestCase):
    def setUp(self):
        self.interpreter = brainfuck.BrainfuckInterpreter()
    def test_hello_world(self):
        self.assertEqual(hello_case[1], self.interpreter.eval(hello_case[0]))
    def test_missing_parenthesis(self):
        self.assertRaises(SyntaxError, self.interpreter.eval, '[++]+]')
