From 59191200dbc773146b9396ba4e216ec4ed0b1cdf Mon Sep 17 00:00:00 2001 From: Daniel Krenn Date: Tue, 23 Aug 2016 19:10:05 +0200 Subject: [PATCH] doctesting all parameters in coefficient_of_word --- src/sage/combinat/recognizable_series.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/sage/combinat/recognizable_series.py b/src/sage/combinat/recognizable_series.py index 163e68f985a..3861691d4e0 100644 --- a/src/sage/combinat/recognizable_series.py +++ b/src/sage/combinat/recognizable_series.py @@ -467,8 +467,21 @@ def coefficient_of_word(self, w, multiply_left=True, multiply_right=True): sage: W = Rec.indices() sage: S = Rec((Matrix([[1, 0], [0, 1]]), Matrix([[0, -1], [1, 2]])), ....: left=vector([0, 1]), right=vector([1, 0])) - sage: S[W(7.digits(2))] + sage: S[W(7.digits(2))] # indirect doctest 3 + + TESTS:: + + sage: w = W(6.digits(2)) + sage: S.coefficient_of_word(w) + 2 + sage: S.coefficient_of_word(w, multiply_left=False) + (-1, 2) + sage: S.coefficient_of_word(w, multiply_right=False) + (2, 3) + sage: S.coefficient_of_word(w, multiply_left=False, multiply_right=False) + [-1 -2] + [ 2 3] """ result = self._mu_of_word_(w) if multiply_left: