From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CF22C1FA6E for ; Thu, 5 May 2016 20:12:59 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/view: note possibly invalid test... Date: Thu, 5 May 2016 20:12:59 +0000 Message-Id: <20160505201259.24329-1-e@80x24.org> List-Id: Ugh, I really need to get off my ass to write automated tests for an Apache2 + mod_perl config. --- t/view.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/view.t b/t/view.t index 1a47416..c6b1e7d 100644 --- a/t/view.t +++ b/t/view.t @@ -133,8 +133,11 @@ EOF { use PublicInbox::MID qw/id_compress/; + + # n.b: this is probably invalid since we dropped CGI for PSGI: like(id_compress('foo%bar@wtf'), qr/\A[a-f0-9]{40}\z/, "percent always converted to sha1 to workaround buggy httpds"); + is(id_compress('foobar-wtf'), 'foobar-wtf', 'regular ID not compressed'); }