#!/usr/bin/env bash test_description='implicit operators in query parser' . $(dirname "$0")/test-lib.sh || exit 1 test_AND() { add_message "[$1]=a@b" add_message "[$1]=b@c" test_begin_subtest "$1: implicitly joined by AND" $2 notmuch count $1:a@b > OUTPUT notmuch count $1:a $1:b >> OUTPUT notmuch count $1:a@b OR $1:b@c >> OUTPUT notmuch count $1:a@b $1:b@c >> OUTPUT cat < EXPECTED 1 1 2 0 EOF test_expect_equal_file EXPECTED OUTPUT } test_AND from test_AND subject test_AND to test_done