original_docstring:  Check that given a bit, we return the inverse 
docstring: Check that given a bit, we return the inverse
docstring_tokens: Check that given a bit we return the inverse
code: def testOneBit(self):
          """ Check that given a bit, we return the inverse """
          def test(out, a):
              yield delay(10)
              for i in range(2):
                  a.next = i
                  yield delay(10)
                  #print a, b, out
                  self.assertEqual(not a, out)
  
          a, out = [Signal(None) for i in range(2)]
          gate = Not(out, a)
          check = test(out, a)
          sim = Simulation(gate, check)
          sim.run(quiet=1)
code_tokens: def testOneBit ( self ) : def test ( out , a ) : yield delay ( 10 ) for i in range ( 2 ) : a . next = i yield delay ( 10 ) self . assertEqual ( not a , out ) a , out = [ Signal ( None ) for i in range ( 2 ) ] gate = Not ( out , a ) check = test ( out , a ) sim = Simulation ( gate , check ) sim . run ( quiet = 1 )
short_docstring: Check that given a bit, we return the inverse
short_docstring_tokens: Check that given a bit we return the inverse
comment: """ Check that given a bit, we return the inverse """$SEP$#print a, b, out