From 3a67185ca812d16f0ed65b7d0bacf4bfd79679d9 Mon Sep 17 00:00:00 2001 From: AnujSingh28 <50865931+AnujSingh28@users.noreply.github.com> Date: Sun, 18 Aug 2019 02:41:59 +0530 Subject: [PATCH] Added doctest for compare_string and is_for_table >>> compare_string('0110','1101') -1 >>> is_for_table('01_','001',1) False --- boolean_algebra/quine_mc_cluskey.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boolean_algebra/quine_mc_cluskey.py b/boolean_algebra/quine_mc_cluskey.py index 94319ca45482..def3df03ddb8 100644 --- a/boolean_algebra/quine_mc_cluskey.py +++ b/boolean_algebra/quine_mc_cluskey.py @@ -12,6 +12,12 @@ >>> selection([[1]],['0.00.01.5']) ['0.00.01.5'] + + >>> compare_string('0110','1101') + -1 + + >>> is_for_table('01_','001',1) + False """ def compare_string(string1, string2): l1 = list(string1); l2 = list(string2)