#NEWLINE# def test_BuiltinFuncs( setup_sim ) : #NEWLINE# #INDENT# model = BuiltinFuncs ( ) #NEWLINE# ( model , sim ) = setup_sim ( sim ) #NEWLINE# model . in_ . value = 1 #NEWLINE# sim . cycle ( ) #NEWLINE# assert ( model . zout == 1 ) #NEWLINE# assert ( model . sout == 1 ) #NEWLINE# model . in_ . value = 15 #NEWLINE# sim . cycle ( ) #NEWLINE# assert ( model . zout == 15 ) #NEWLINE# assert ( model . sout == 255 )