beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**

Home Page:https://github.com/beyondgrep/ack3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

t/ack-proximate.t fails on some systems (ack-2.999_01)

eserte opened this issue · comments

On some of my smoker systems t/ack-proximate.t fails like this:

            #   Failed test 'Grouped proximate=2'
            #   at t/Util.pm line 462.
            # +----+------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------+
            # | Elt|Got                                                                                 | Elt|Expected                                                                            |
            # +----+------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------+
            # |   0|[                                                                                   |   0|[                                                                                   |
            # |    |                                                                                    *   1|  't/text/bill-of-rights.txt',                                                      *
            # |    |                                                                                    *   2|  '53:fact tried by a jury, shall be otherwise re-examined in any Court of',        *
            # |    |                                                                                    *   3|  '',                                                                               *
            # |   1|  't/text/constitution.txt',                                                        |   4|  't/text/constitution.txt',                                                        |
            # |   2|  '199:To constitute Tribunals inferior to the supreme Court;',                     |   5|  '199:To constitute Tribunals inferior to the supreme Court;',                     |
            # |   3|  '',                                                                               |   6|  '',                                                                               |
            # |   4|  '372:Judges of the supreme Court, and all other Officers of the United States,',  |   7|  '372:Judges of the supreme Court, and all other Officers of the United States,',  |
            # |   5|  '',                                                                               |   8|  '',                                                                               |
            # |   6|  '376:in the Courts of Law, or in the Heads of Departments.',                      |   9|  '376:in the Courts of Law, or in the Heads of Departments.',                      |
            # |   7|  '',                                                                               |  10|  '',                                                                               |
            # |   8|  '404:Court, and in such inferior Courts as the Congress may from time to',        |  11|  '404:Court, and in such inferior Courts as the Congress may from time to',        |
            # |   9|  '406:Courts, shall hold their Offices during good Behaviour, and shall, at',      |  12|  '406:Courts, shall hold their Offices during good Behaviour, and shall, at',      |
            # |  10|  '',                                                                               |  13|  '',                                                                               |
            # |  11|  '425:and those in which a State shall be Party, the supreme Court shall',         |  14|  '425:and those in which a State shall be Party, the supreme Court shall',         |
            # |  12|  '427:the supreme Court shall have appellate Jurisdiction, both as to Law and',    |  15|  '427:the supreme Court shall have appellate Jurisdiction, both as to Law and',    |
            # |  13|  '',                                                                               |  16|  '',                                                                               |
            # *  14|  '441:of two Witnesses to the same overt Act, or on Confession in open Court.',    *  17|  '441:of two Witnesses to the same overt Act, or on Confession in open Court.'     *
            # *  15|  '',                                                                               *    |                                                                                    |
            # *  16|  't/text/bill-of-rights.txt',                                                      *    |                                                                                    |
            # *  17|  '53:fact tried by a jury, shall be otherwise re-examined in any Court of'         *    |                                                                                    |
            # |  18|]                                                                                   |  18|]                                                                                   |
            # +----+------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------+
            # actual[
            #   't/text/constitution.txt',
            #   '199:To constitute Tribunals inferior to the supreme Court;',
            #   '',
            #   '372:Judges of the supreme Court, and all other Officers of the United States,',
            #   '',
            #   '376:in the Courts of Law, or in the Heads of Departments.',
            #   '',
            #   '404:Court, and in such inferior Courts as the Congress may from time to',
            #   '406:Courts, shall hold their Offices during good Behaviour, and shall, at',
            #   '',
            #   '425:and those in which a State shall be Party, the supreme Court shall',
            #   '427:the supreme Court shall have appellate Jurisdiction, both as to Law and',
            #   '',
            #   '441:of two Witnesses to the same overt Act, or on Confession in open Court.',
            #   '',
            #   't/text/bill-of-rights.txt',
            #   '53:fact tried by a jury, shall be otherwise re-examined in any Court of'
            # ]
            # expected[
            #   't/text/bill-of-rights.txt',
            #   '53:fact tried by a jury, shall be otherwise re-examined in any Court of',
            #   '',
            #   't/text/constitution.txt',
            #   '199:To constitute Tribunals inferior to the supreme Court;',
            #   '',
            #   '372:Judges of the supreme Court, and all other Officers of the United States,',
            #   '',
            #   '376:in the Courts of Law, or in the Heads of Departments.',
            #   '',
            #   '404:Court, and in such inferior Courts as the Congress may from time to',
            #   '406:Courts, shall hold their Offices during good Behaviour, and shall, at',
            #   '',
            #   '425:and those in which a State shall be Party, the supreme Court shall',
            #   '427:the supreme Court shall have appellate Jurisdiction, both as to Law and',
            #   '',
            #   '441:of two Witnesses to the same overt Act, or on Confession in open Court.'
            # ]
            # Looks like you failed 1 test of 1.

        #   Failed test 'Util::lists_match( Grouped proximate=2 )'
        #   at t/Util.pm line 488.
        # Looks like you failed 1 test of 2.

    #   Failed test 'Util::ack_lists_match( Grouped proximate=2, --proximate=2, --group, -i, court, t/text )'
    #   at t/ack-proximate.t line 104.
    # Looks like you failed 1 test of 1.
(etc)

Statistical analysis does not reveal any useful results, other than it passes on all my freebsd smokers and fails on almost all my linux smokers (but not all of them).

This is an ack3 bug. Opened again at beyondgrep/ack3#123.