We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66ba297 commit a1c6658Copy full SHA for a1c6658
boolean_algebra/quine_mc_cluskey.py
@@ -1,3 +1,18 @@
1
+"""
2
+ doctests
3
+
4
+ >>> decimal_to_binary(3,[1.5])
5
+ ['0.00.01.5']
6
7
+ >>> check(['0.00.01.5'])
8
9
10
+ >>> prime_implicant_chart(['0.00.01.5'],['0.00.01.5'])
11
+ [[1]]
12
13
+ >>> selection([[1]],['0.00.01.5'])
14
15
16
def compare_string(string1, string2):
17
l1 = list(string1); l2 = list(string2)
18
count = 0
@@ -113,4 +128,6 @@ def main():
113
128
print(essential_prime_implicants)
114
129
115
130
if __name__ == '__main__':
131
+ import doctest
132
+ doctest.testmod()
116
133
main()
0 commit comments