瀏覽代碼

Replace the doctest with direct call to main()
Got the right output

yelite 11 年之前
父節點
當前提交
1b4118c6e5
共有 1 個文件被更改,包括 5 次插入3 次删除
  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!!!