MCPcopy Create free account
hub / github.com/ipython/ipython / test_latex_no_results

Method test_latex_no_results

IPython/core/tests/test_completer.py:227–234  ·  view source on GitHub ↗

forward latex should really return nothing in either field if nothing is found.

(self)

Source from the content-addressed store, hash-verified

225 nt.assert_in("\\aleph", matches)
226
227 def test_latex_no_results(self):
228 """
229 forward latex should really return nothing in either field if nothing is found.
230 """
231 ip = get_ipython()
232 text, matches = ip.Completer.latex_matches("\\really_i_should_match_nothing")
233 nt.assert_equal(text, "")
234 nt.assert_equal(matches, [])
235
236 def test_back_latex_completion(self):
237 ip = get_ipython()

Callers

nothing calls this directly

Calls 2

get_ipythonFunction · 0.90
latex_matchesMethod · 0.80

Tested by

no test coverage detected