compare_values¶
-
psi4.driver.
compare_values
(expected, computed, digits, label, exitonfail=True)[source]¶ Function to compare two values. Prints
util.success()
when value computed matches value expected to number of digits (or to digits itself when digits < 1 e.g. digits=0.04). Performs a system exit on failure unless exitonfail False, in which case returns error message. Used in input files in the test suite.