From c06c965d81713d698d6e6a73c69f3473aa26e1b2 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 9 Jun 2021 17:16:06 -0700 Subject: [PATCH] sage.interfaces.sympy_wrapper.SageSet: Add another doctest --- src/sage/interfaces/sympy_wrapper.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sage/interfaces/sympy_wrapper.py b/src/sage/interfaces/sympy_wrapper.py index 6c22b47f9c3..00f7b65dd27 100644 --- a/src/sage/interfaces/sympy_wrapper.py +++ b/src/sage/interfaces/sympy_wrapper.py @@ -48,6 +48,14 @@ class SageSet(Set): def __new__(cls, sage_set): r""" Construct a wrapper for a Sage set. + + TESTS:: + + sage: from sage.interfaces.sympy_wrapper import SageSet + sage: F = Set([1, 2]); F + {1, 2} + sage: sF = SageSet(F); sF + SageSet({1, 2}) """ return Basic.__new__(cls, sage_set)