diff options
author | Eric Wong <e@80x24.org> | 2017-01-07 01:44:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-07 01:45:46 +0000 |
commit | f74b64dbe75226b996367a6049ebd00a3e39ba49 (patch) | |
tree | 9d9ddd0d477579e81eef6ffb17a24978d83876df /t | |
parent | 492910d43c179a7e1919b2d0f417aea9473f9730 (diff) | |
download | public-inbox-f74b64dbe75226b996367a6049ebd00a3e39ba49.tar.gz |
Apparently it never actually got used, and the world seems fine without it, so we can drop it. While we're at it, consider removing our subject_path usage from existence, too. We are not using fancy subject-line based URLs, here.
Diffstat (limited to 't')
-rw-r--r-- | t/search.t | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -15,23 +15,6 @@ is(0, system(qw(git init -q --bare), $git_dir), "git init (main)"); eval { PublicInbox::Search->new($git_dir) }; ok($@, "exception raised on non-existent DB"); -{ - my $orig = "FOO " x 30; - my $summ = PublicInbox::Search::subject_summary($orig); - - $summ = length($summ); - $orig = length($orig); - ok($summ < $orig && $summ > 0, "summary shortened ($orig => $summ)"); - - $orig = "FOO" x 30; - $summ = PublicInbox::Search::subject_summary($orig); - - $summ = length($summ); - $orig = length($orig); - ok($summ < $orig && $summ > 0, - "summary shortened but not empty: $summ"); -} - my $rw = PublicInbox::SearchIdx->new($git_dir, 1); $rw->_xdb_acquire; $rw->_xdb_release; |