From 04e904b72471124c8b69059accc1283f8ca5d859 2012-11-20 20:52:50 From: Takafumi Arakaki Date: 2012-11-20 20:52:50 Subject: [PATCH] Add a test for combination of n/unique arguments --- diff --git a/IPython/core/tests/test_history.py b/IPython/core/tests/test_history.py index 8c3ac07..63b6178 100644 --- a/IPython/core/tests/test_history.py +++ b/IPython/core/tests/test_history.py @@ -114,6 +114,12 @@ def test_history(): newhist[2], newhist[3]]) + gothist = ip.history_manager.search("*=*", unique=True, n=3) + nt.assert_equal(list(gothist), + [(1, 3, hist[2]), + newhist[2], + newhist[3]]) + gothist = ip.history_manager.search("b*", output=True) nt.assert_equal(list(gothist), [(1,3,(hist[2],"spam"))] )