@@ -0,0 +1,1224 @@
+from functools import partial%0Afrom typing import Callable, List, Tuple%0A%0Aimport pytest  # type: ignore%0Aimport numpy as np%0A%0AAR = np.array(0)%0AAR.setflags(write=False)%0A%0AKACF = frozenset(%7BNone, %22K%22, %22A%22, %22C%22, %22F%22%7D)%0AACF = frozenset(%7BNone, %22A%22, %22C%22, %22F%22%7D)%0ACF = frozenset(%7BNone, %22C%22, %22F%22%7D)%0A%0Aorder_list: List%5BTuple%5Bfrozenset, Callable%5D%5D = %5B%0A    (KACF, partial(np.ndarray, 1)),%0A    (KACF, AR.tobytes),%0A    (KACF, partial(AR.astype, int)),%0A    (KACF, AR.copy),%0A    (ACF, partial(AR.reshape, 1)),%0A    (KACF, AR.flatten),%0A    (KACF, AR.ravel),%0A    (KACF, partial(np.array, 1)),%0A    (CF, partial(np.zeros, 1)),%0A    (CF, partial(np.ones, 1)),%0A    (CF, partial(np.empty, 1)),%0A    (CF, partial(np.full, 1, 1)),%0A    (KACF, partial(np.zeros_like, AR)),%0A    (KACF, partial(np.ones_like, AR)),%0A    (KACF, partial(np.empty_like, AR)),%0A    (KACF, partial(np.full_like, AR, 1)),%0A    (KACF, partial(np.add, 1, 1)),  # i.e. np.ufunc.__call__%0A    (ACF, partial(np.reshape, AR, 1)),%0A    (KACF, partial(np.ravel, AR)),%0A%5D%0A%0Afor order_set, func in order_list:%0A    for order in order_set:%0A        func(order=order)%0A%0A    invalid_orders = KACF - order_set%0A    for order in invalid_orders:%0A        with pytest.raises(ValueError):%0A            func(order=order)%0A

Add more `Literal`-related tests