From 0cbbb17a82d1e82b7ad8d5ec2ad4d20f373ecb71 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Wed, 30 Jan 2013 21:23:04 +0100 Subject: [PATCH] Add tests in completion/docstring.py --- test/completion/docstring.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/completion/docstring.py b/test/completion/docstring.py index 66b6744e..94c4a471 100644 --- a/test/completion/docstring.py +++ b/test/completion/docstring.py @@ -1,10 +1,12 @@ """ Test docstrings in functions and classes, which are used to infer types """ -def f(a, b): +def f(a, b, c, d): """ asdfasdf :param a: blablabla :type a: str :type b: (str, int) + :type c: threading.Thread + :type d: :class:`threading.Thread` :rtype: dict """ #? str() @@ -13,6 +15,10 @@ def f(a, b): b[0] #? int() b[1] + #? ['join'] + c.join + #? ['join'] + d.join #? dict() f()