This test requires the assumption of normality of the
population. Under that assumption the test is the uniformly most powerful
invariant test (Wellek, 2003, pp. 78-79). This version of the test
can be applied post-hoc to any testing situation in which you have the
mean, standard deviation, and sample size, and are confident that the
sample is drawn from a normally-distributed population.
The function as documented by Wellek (2003) uses units relative to the
standard deviation, noting (p. 12) that 0.25 corresponds to a strict
test and 0.5 to a liberal test.