#NEWLINE# def test_GetMSB( setup_sim ) : #NEWLINE# #INDENT# model = GetMSB ( 5 ) #NEWLINE# ( model , sim ) = setup_sim ( model ) #NEWLINE# model . in_ . value = 10 #NEWLINE# sim . cycle ( ) #NEWLINE# assert ( model . out == 0 ) #NEWLINE# model . in_ . value = 26 #NEWLINE# sim . cycle ( ) #NEWLINE# assert ( model . out == 1 ) #NEWLINE# model . in_ . value = 16 #NEWLINE# sim . cycle ( ) #NEWLINE# assert ( model . out == 1 ) #NEWLINE# model . in_ . value = 1 #NEWLINE# sim . cycle ( ) #NEWLINE# assert ( setup_sim . out == 0 )