

import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
A_       : Union[str, Any]         =			'.'


if __name__ == "__main__":
	A_       : List[Any]         =			os.path.join(REPO_PATH, 'utils/documentation_tests.txt')
	A_       : Optional[int]         =			[]
	A_       : List[str]         =			[]
	with open(doctest_file_path) as fp:
		for line in fp:
			A_       : str         =			line.strip()
			A_       : List[Any]         =			os.path.join(REPO_PATH, line)
			if not (os.path.isfile(path) or os.path.isdir(path)):
				non_existent_paths.append(line)
			all_paths.append(path)
	if len(non_existent_paths) > 0:
		A_       : Dict         =			'\n'.join(non_existent_paths)
		raise ValueError(f'''`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}''')
	if all_paths != sorted(all_paths):
		raise ValueError('Files in `utils/documentation_tests.txt` are not in alphabetical order.')





"""simple docstring"""





from __future__ import annotations







def 	__a     (		__lowerCamelCase,		__lowerCamelCase,		__lowerCamelCase  ):
   if (voltage, current, resistance).count(0  ) != 1:
      raise ValueError("One and only one argument must be 0"  )
   if resistance < 0:
      raise ValueError("Resistance cannot be negative"  )
   if voltage == 0:
      return {"voltage": float(current * resistance  )}
   elif current == 0:
      return {"current": voltage / resistance}
   elif resistance == 0:
      return {"resistance": voltage / current}
   else:
      raise ValueError("Exactly one argument must be 0"  )


if __name__ == "__main__":
    import doctest

    doctest.testmod()


