36 lines
872 B
Python
36 lines
872 B
Python
|
|
from standardize_test_format import standardize_java_text
|
|
|
|
|
|
INPUT_1 = """
|
|
@Test
|
|
@DisplayName("Invocations fail with callers without required permissions")
|
|
public void selectInvocationWithoutPermission() { }
|
|
"""
|
|
|
|
OUTPUT_1 = """
|
|
@Test
|
|
@DisplayName("Invocations fail with callers without required permissions")
|
|
public void invocationsFailWithCallersWithoutRequiredPermissions() { }
|
|
"""
|
|
|
|
INPUT_2 = """
|
|
/** Invocations fail with callers without required permissions. */
|
|
@Test
|
|
public void selectInvocationWithoutPermission() { }
|
|
"""
|
|
|
|
OUTPUT_2 = """
|
|
@Test
|
|
@DisplayName("Invocations fail with callers without required permissions")
|
|
public void invocationsFailWithCallersWithoutRequiredPermissions() { }
|
|
"""
|
|
|
|
def test_1():
|
|
assert standardize_java_text(INPUT_1.strip()) == OUTPUT_1.strip()
|
|
|
|
def test_2():
|
|
assert standardize_java_text(INPUT_2.strip()) == OUTPUT_2.strip()
|
|
|
|
|