summaryrefslogtreecommitdiffstats
path: root/Lib/test/output/test_difflib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-03-21 23:07:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-03-21 23:07:59 (GMT)
commit24a41911602bf98e853278ef4bb8b4fb41c0ac8c (patch)
tree2e9dd92e5d108a655b9a281bc25382ca4a1a0cd8 /Lib/test/output/test_difflib
parentc392b570db0df5a11771921865a65d69646aa24b (diff)
downloadcpython-24a41911602bf98e853278ef4bb8b4fb41c0ac8c.zip
cpython-24a41911602bf98e853278ef4bb8b4fb41c0ac8c.tar.gz
cpython-24a41911602bf98e853278ef4bb8b4fb41c0ac8c.tar.bz2
Changed doctest to run tests in alphabetic order of name.
This makes verbose-mode output easier to dig thru, and removes an accidental dependence on the order of dict.items() (made visible by recent changes to dictobject.c).
Diffstat (limited to 'Lib/test/output/test_difflib')
-rw-r--r--Lib/test/output/test_difflib58
1 files changed, 29 insertions, 29 deletions
diff --git a/Lib/test/output/test_difflib b/Lib/test/output/test_difflib
index 0ea1048..cc765b1 100644
--- a/Lib/test/output/test_difflib
+++ b/Lib/test/output/test_difflib
@@ -156,6 +156,14 @@ Trying: s.find_longest_match(0, 2, 0, 1)
Expecting: (0, 0, 0)
ok
0 of 6 examples failed in difflib.SequenceMatcher.find_longest_match.__doc__
+Running difflib.SequenceMatcher.get_matching_blocks.__doc__
+Trying: s = SequenceMatcher(None, "abxcd", "abcd")
+Expecting: nothing
+ok
+Trying: s.get_matching_blocks()
+Expecting: [(0, 0, 2), (3, 2, 2), (5, 4, 0)]
+ok
+0 of 2 examples failed in difflib.SequenceMatcher.get_matching_blocks.__doc__
Running difflib.SequenceMatcher.get_opcodes.__doc__
Trying: a = "qabxcd"
Expecting: nothing
@@ -180,69 +188,61 @@ ok
0 of 4 examples failed in difflib.SequenceMatcher.get_opcodes.__doc__
Running difflib.SequenceMatcher.quick_ratio.__doc__
0 of 0 examples failed in difflib.SequenceMatcher.quick_ratio.__doc__
-Running difflib.SequenceMatcher.set_seqs.__doc__
-Trying: s = SequenceMatcher()
-Expecting: nothing
-ok
-Trying: s.set_seqs("abcd", "bcde")
+Running difflib.SequenceMatcher.ratio.__doc__
+Trying: s = SequenceMatcher(None, "abcd", "bcde")
Expecting: nothing
ok
Trying: s.ratio()
Expecting: 0.75
ok
-0 of 3 examples failed in difflib.SequenceMatcher.set_seqs.__doc__
-Running difflib.SequenceMatcher.set_seq2.__doc__
+Trying: s.quick_ratio()
+Expecting: 0.75
+ok
+Trying: s.real_quick_ratio()
+Expecting: 1.0
+ok
+0 of 4 examples failed in difflib.SequenceMatcher.ratio.__doc__
+Running difflib.SequenceMatcher.real_quick_ratio.__doc__
+0 of 0 examples failed in difflib.SequenceMatcher.real_quick_ratio.__doc__
+Running difflib.SequenceMatcher.set_seq1.__doc__
Trying: s = SequenceMatcher(None, "abcd", "bcde")
Expecting: nothing
ok
Trying: s.ratio()
Expecting: 0.75
ok
-Trying: s.set_seq2("abcd")
+Trying: s.set_seq1("bcde")
Expecting: nothing
ok
Trying: s.ratio()
Expecting: 1.0
ok
-0 of 4 examples failed in difflib.SequenceMatcher.set_seq2.__doc__
-Running difflib.SequenceMatcher.set_seq1.__doc__
+0 of 4 examples failed in difflib.SequenceMatcher.set_seq1.__doc__
+Running difflib.SequenceMatcher.set_seq2.__doc__
Trying: s = SequenceMatcher(None, "abcd", "bcde")
Expecting: nothing
ok
Trying: s.ratio()
Expecting: 0.75
ok
-Trying: s.set_seq1("bcde")
+Trying: s.set_seq2("abcd")
Expecting: nothing
ok
Trying: s.ratio()
Expecting: 1.0
ok
-0 of 4 examples failed in difflib.SequenceMatcher.set_seq1.__doc__
-Running difflib.SequenceMatcher.get_matching_blocks.__doc__
-Trying: s = SequenceMatcher(None, "abxcd", "abcd")
+0 of 4 examples failed in difflib.SequenceMatcher.set_seq2.__doc__
+Running difflib.SequenceMatcher.set_seqs.__doc__
+Trying: s = SequenceMatcher()
Expecting: nothing
ok
-Trying: s.get_matching_blocks()
-Expecting: [(0, 0, 2), (3, 2, 2), (5, 4, 0)]
-ok
-0 of 2 examples failed in difflib.SequenceMatcher.get_matching_blocks.__doc__
-Running difflib.SequenceMatcher.real_quick_ratio.__doc__
-0 of 0 examples failed in difflib.SequenceMatcher.real_quick_ratio.__doc__
-Running difflib.SequenceMatcher.ratio.__doc__
-Trying: s = SequenceMatcher(None, "abcd", "bcde")
+Trying: s.set_seqs("abcd", "bcde")
Expecting: nothing
ok
Trying: s.ratio()
Expecting: 0.75
ok
-Trying: s.quick_ratio()
-Expecting: 0.75
-ok
-Trying: s.real_quick_ratio()
-Expecting: 1.0
-ok
-0 of 4 examples failed in difflib.SequenceMatcher.ratio.__doc__
+0 of 3 examples failed in difflib.SequenceMatcher.set_seqs.__doc__
Running difflib.get_close_matches.__doc__
Trying: get_close_matches("appel", ["ape", "apple", "peach", "puppy"])
Expecting: ['apple', 'ape']