Beispiel #1
0
def test_hello_without_name():
    """Test with no parameter."""
    assert "Hello, World!", hello()
Beispiel #2
0
def test_hello_with_macronated_name():
    """Test with a macronated name supplied."""
    assert "Hello, Ātaahua!", hello("Ātaahua")
Beispiel #3
0
def test_hello_with_sample_name():
    """Test with a name supplied."""
    assert "Hello, Alice!", hello("Alice")
def test_hello_without_name() -> None:
    """Test with no parameter."""
    assert hello() == "Hello, World!"
def test_hello_with_macronated_name() -> None:
    """Test with a macronated name supplied."""
    assert hello("Ātaahua") == "Hello, Ātaahua!"
def test_hello_with_sample_name() -> None:
    """Test with a name supplied."""
    assert hello("Alice") == "Hello, Alice!"