aboutsummaryrefslogtreecommitdiff
path: root/challenge-273/iangoodnight/python/tests/test_task2.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-273/iangoodnight/python/tests/test_task2.py')
-rw-r--r--challenge-273/iangoodnight/python/tests/test_task2.py10
1 files changed, 10 insertions, 0 deletions
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