text: from unittest import TestCase
  
  from tests import abspath
  
  from pytezos.repl.interpreter import Interpreter
  from pytezos.michelson.converter import michelson_to_micheline
  from pytezos.repl.parser import parse_expression
  
  
  class OpcodeTestreverse_loop_180(TestCase):
  
      def setUp(self):
          self.maxDiff = None
          self.i = Interpreter(debug=True)
          
      def test_opcode_reverse_loop_180(self):
          res = self.i.execute(f'INCLUDE "{abspath("opcodes/contracts/reverse_loop.tz")}"')
          self.assertTrue(res['success'])
          
          res = self.i.execute('RUN { "c" ; "b" ; "a" } {""}')
          self.assertTrue(res['success'])
          
          exp_val_expr = michelson_to_micheline('{ "a" ; "b" ; "c" }')
          exp_val = parse_expression(exp_val_expr, res['result']['storage'].type_expr)
          self.assertEqual(exp_val, res['result']['storage']._val)
  