Browse Source

Merge pull request #44 from yelite/master

Replace the doctest with direct call to main() in adapter.py
Sakis Kasampalis 11 years ago
parent
commit
e15da30159
1 changed files with 5 additions and 3 deletions
  1. 5 3
      adapter.py

+ 5 - 3
adapter.py

@@ -89,8 +89,10 @@ def main():
 
 
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":
-    import doctest
-    doctest.testmod()
+    main()
 
 
 ### OUTPUT ###
 ### OUTPUT ###
-
+# A Dog goes woof!
+# A Cat goes meow!
+# A Human goes 'hello'
+# A Car goes vroom!!!