From e057387910ca9135099a89c9e9dc185a694b7968 Mon Sep 17 00:00:00 2001 From: David Halter Date: Wed, 26 Dec 2012 23:08:34 +0100 Subject: [PATCH] added docstring tests (forgot to add them a while ago), important for #87 --- test/completion/docstring.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/completion/docstring.py diff --git a/test/completion/docstring.py b/test/completion/docstring.py new file mode 100644 index 00000000..8362630b --- /dev/null +++ b/test/completion/docstring.py @@ -0,0 +1,21 @@ +""" Test docstrings in functions and classes, which are used to infer types """ + +def f(a, b): + """ asdfasdf + :param a: blablabla + :type a: str + """ + #? str() + a + #? + b + +def g(a, b): + """ asdfasdf + Arguments: + a (str): blablabla + """ + #? str() + a + #? + b