mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Boolean algebra pytests (#1097)
* Added Zeller's congruence algorithm * Update args help * add a few doctests * remove old file
This commit is contained in:
parent
bdbe682568
commit
87a789af51
|
@ -1,3 +1,18 @@
|
|||
"""
|
||||
doctests
|
||||
|
||||
>>> decimal_to_binary(3,[1.5])
|
||||
['0.00.01.5']
|
||||
|
||||
>>> check(['0.00.01.5'])
|
||||
['0.00.01.5']
|
||||
|
||||
>>> prime_implicant_chart(['0.00.01.5'],['0.00.01.5'])
|
||||
[[1]]
|
||||
|
||||
>>> selection([[1]],['0.00.01.5'])
|
||||
['0.00.01.5']
|
||||
"""
|
||||
def compare_string(string1, string2):
|
||||
l1 = list(string1); l2 = list(string2)
|
||||
count = 0
|
||||
|
@ -113,4 +128,6 @@ def main():
|
|||
print(essential_prime_implicants)
|
||||
|
||||
if __name__ == '__main__':
|
||||
import doctest
|
||||
doctest.testmod()
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user