From d87e83206ea21bc2290ce459ffba878e94e49f95 Mon Sep 17 00:00:00 2001 From: Ian Goodnight Date: Sun, 16 Jun 2024 14:44:45 -0400 Subject: week 273 --- challenge-273/iangoodnight/python/tests/test_task2.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 challenge-273/iangoodnight/python/tests/test_task2.py (limited to 'challenge-273/iangoodnight/python/tests/test_task2.py') diff --git a/challenge-273/iangoodnight/python/tests/test_task2.py b/challenge-273/iangoodnight/python/tests/test_task2.py new file mode 100644 index 0000000000..12dee45e22 --- /dev/null +++ b/challenge-273/iangoodnight/python/tests/test_task2.py @@ -0,0 +1,10 @@ +"""Tests for task2.py""" +from python.task2 import b_after_a + + +def test_examples() -> None: + """Test if function returns correct percentage of character""" + assert b_after_a("aabb") is True + assert b_after_a("abab") is False + assert b_after_a("aaa") is False + assert b_after_a("bbb") is True -- cgit