22 lines
521 B
Python
22 lines
521 B
Python
from solution import count
|
|
|
|
|
|
def test_hello_andromeda():
|
|
assert count("Hello andromeda") == {"length": 15, "words": 2, "a_count": 2}
|
|
|
|
|
|
def test_all_systems_nominal():
|
|
assert count("All systems nominal") == {"length": 19, "words": 3, "a_count": 2}
|
|
|
|
|
|
def test_caps_with_a():
|
|
assert count("MISSION READY ALPHA") == {"length": 19, "words": 3, "a_count": 3}
|
|
|
|
|
|
def test_quick_brown_fox():
|
|
assert count("the quick brown fox jumps over") == {
|
|
"length": 30,
|
|
"words": 6,
|
|
"a_count": 0,
|
|
}
|