Changeset 6dba228


Ignore:
Timestamp:
Apr 26, 2010, 3:46:12 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
3001c11
Parents:
ae333f0
git-author:
David Benjamin <davidben@mit.edu> (04/26/10 12:54:14)
git-committer:
David Benjamin <davidben@mit.edu> (04/26/10 15:46:12)
Message:
Fix filter tests to account for new deleted syntax
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Complete/Filter.pm

    ra1d98e4 r6dba228  
    2626### Private
    2727
    28 my %filter_cmds = (
     28# Exported for the tester
     29our %filter_cmds = (
    2930    sender    => \&BarnOwl::Complete::Zephyr::complete_user,
    3031    recipient => \&BarnOwl::Complete::Zephyr::complete_user,
  • t/completion.t

    rccafe64 r6dba228  
    266266
    267267# Test the filter expression completer
     268
     269sub toplevel_filter_expect {
     270    return [sort(keys %BarnOwl::Complete::Filter::filter_cmds, qw[( not true false])];
     271}
     272
    268273test_complete('', '',
    269               [qw[( body class direction false filter hostname instance login not opcode perl realm recipient sender true type]],
     274              toplevel_filter_expect(),
    270275              \&complete_filter_expr);
    271276
    272277test_complete('not ', '',
    273               [qw[( body class direction false filter hostname instance login not opcode perl realm recipient sender true type]],
     278              toplevel_filter_expect(),
    274279              \&complete_filter_expr);
    275280
Note: See TracChangeset for help on using the changeset viewer.