Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test(a=each(1, 2), b=each(3, 4)):
pass
def invalid_test(a=each(1, 2), b=each(3, 4, 5)):
pass
def parameterised_test(a=each(1, 2, 3), b="a value"):
pass
def _(
input=s,
num_chars=each(20, 11, 10, 5),
expected=each(s, s, "hello w...", "he..."),
):
result = truncate(input, num_chars)
expect(result).equals(expected)
def _(
input=s,
num_chars=each(20, 11, 10, 5),
expected=each(s, s, "hello w...", "he..."),
):
result = truncate(input, num_chars)
expect(result).equals(expected)