



"""simple docstring"""





import unittest

from knapsack import knapsack as k
class  lowercase__  (       unittest.TestCase ):







       '''simple docstring'''


       def 	lowercase__							(				self     :    Optional[Any]       )					->		List[str]:


             '''simple docstring'''




             UpperCAmelCase_     					=				0
             UpperCAmelCase_     					=				[0]
             UpperCAmelCase_     					=				[0]
             UpperCAmelCase_     					=				len(_UpperCAmelCase       )
             self.assertEqual(k.knapsack(_UpperCAmelCase						,							_UpperCAmelCase						,							_UpperCAmelCase						,							_UpperCAmelCase       )						,							0       )

             UpperCAmelCase_     					=				[60]
             UpperCAmelCase_     					=				[10]
             UpperCAmelCase_     					=				len(_UpperCAmelCase       )
             self.assertEqual(k.knapsack(_UpperCAmelCase						,							_UpperCAmelCase						,							_UpperCAmelCase						,							_UpperCAmelCase       )						,							0       )



       def 	lowercase__							(				self     :    Dict       )					->		Dict:


             '''simple docstring'''




             UpperCAmelCase_     					=				3
             UpperCAmelCase_     					=				[1, 2, 3]
             UpperCAmelCase_     					=				[3, 2, 1]
             UpperCAmelCase_     					=				len(_UpperCAmelCase       )
             self.assertEqual(k.knapsack(_UpperCAmelCase						,							_UpperCAmelCase						,							_UpperCAmelCase						,							_UpperCAmelCase       )						,							5       )







       def 	lowercase__							(				self     :    int       )					->		Tuple:


             '''simple docstring'''




             UpperCAmelCase_     					=				50
             UpperCAmelCase_     					=				[60, 100, 120]
             UpperCAmelCase_     					=				[10, 20, 30]
             UpperCAmelCase_     					=				len(_UpperCAmelCase       )
             self.assertEqual(k.knapsack(_UpperCAmelCase						,							_UpperCAmelCase						,							_UpperCAmelCase						,							_UpperCAmelCase       )						,							220       )


if __name__ == "__main__":
  unittest.main()







'''simple docstring'''

SCREAMING_SNAKE_CASE							:				int     	=			8.3_1_4_4_5_9_8




def 							_UpperCamelCase				(   lowerCAmelCase__:					float		,lowerCAmelCase__:					float   )      -> float:
							if temperature < 0:
														raise Exception('Temperature cannot be less than 0 K'   )
							if molar_mass <= 0:
														raise Exception('Molar mass cannot be less than or equal to 0 kg/mol'   )
							else:
														return (3 * UNIVERSAL_GAS_CONSTANT * temperature / molar_mass) ** 0.5


if __name__ == "__main__":
							import doctest

							# run doctest
							doctest.testmod()

							# example
							SCREAMING_SNAKE_CASE							:				List[str]     	=			300
							SCREAMING_SNAKE_CASE							:				List[Any]     	=			28
							SCREAMING_SNAKE_CASE							:				Optional[Any]     	=			rms_speed_of_molecule(temperature, molar_mass)
							print(f"Vrms of Nitrogen gas at 300 K is {vrms} m/s")





