~ubuntu-branches/ubuntu/karmic/cyrus-imapd-2.2/karmic

« back to all changes in this revision

Viewing changes to sieve/test.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-07-11 18:51:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060711185139-gl3oe4tppp7g3euf
Tags: 2.2.13-4ubuntu1
Synchronize with Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
  
3
3
 * test.c -- tester for libsieve
4
4
 * Larry Greenfield
5
 
 * $Id: test.c,v 1.23 2004/06/16 13:50:46 ken3 Exp $
 
5
 * $Id: test.c,v 1.25 2005/03/15 16:08:48 ken3 Exp $
6
6
 *
7
7
 * usage: "test message script"
8
8
 */
496
496
  { B_ASCIICASEMAP, B_IS, "a", "a", 1 },
497
497
  { B_ASCIICASEMAP, B_IS, "a", "A", 1 },
498
498
 
 
499
  { B_ASCIINUMERIC, B_IS, "123", "123", 1 },
 
500
  { B_ASCIINUMERIC, B_IS, "123", "-123", 0 },
 
501
  { B_ASCIINUMERIC, B_IS, "abc", "123", 0 },
 
502
  { B_ASCIINUMERIC, B_IS, "abc", "abc", 1 },
 
503
  { B_ASCIINUMERIC, B_IS, "12345678900", "3755744308", 0 },    /* test for 32bit overflow */
 
504
  { B_ASCIINUMERIC, B_IS, "1567", "1567pounds", 1 },
 
505
  { B_ASCIINUMERIC, B_IS, "", "", 1 },
 
506
  { B_ASCIINUMERIC, B_IS, "123456789", "567", 0 },
 
507
  { B_ASCIINUMERIC, B_IS, "567", "123456789", 0 },
 
508
  { B_ASCIINUMERIC, B_IS, "123456789", "00000123456789", 1 },
 
509
  { B_ASCIINUMERIC, B_IS, "102", "1024", 0 },
 
510
  { B_ASCIINUMERIC, B_IS, "1567M", "1567 arg", 1 },
 
511
 
499
512
  { B_OCTET, B_CONTAINS, "", "", 1 },
500
513
  { B_OCTET, B_CONTAINS, "", "a", 1 },
501
514
  { B_OCTET, B_CONTAINS, "a", "", 0 },