1 dnl @ ../doc/m4.texi:2843: Origin of test
2 dnl @ expected status: 0
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
6 dnl @ This file is free software; the Free Software Foundation
7 dnl @ gives unlimited permission to copy and/or distribute it
8 dnl @ with or without modifications, as long as this notice
10 define(`e', `$@')define(`long', `01234567890123456789')
12 ifelse(long, `01234567890123456789', `yes', `no')
14 ifelse(`01234567890123456789', long, `yes', `no')
16 ifelse(long, `01234567890123456789-', `yes', `no')
18 ifelse(`01234567890123456789-', long, `yes', `no')
20 ifelse(e(long), `01234567890123456789', `yes', `no')
22 ifelse(`01234567890123456789', e(long), `yes', `no')
24 ifelse(e(long), `01234567890123456789-', `yes', `no')
26 ifelse(`01234567890123456789-', e(long), `yes', `no')
28 ifelse(-e(long), `-01234567890123456789', `yes', `no')
30 ifelse(-`01234567890123456789', -e(long), `yes', `no')
32 ifelse(-e(long), `-01234567890123456789-', `yes', `no')
34 ifelse(`-01234567890123456789-', -e(long), `yes', `no')
36 ifelse(-e(long)-, `-01234567890123456789-', `yes', `no')
38 ifelse(-`01234567890123456789-', -e(long)-, `yes', `no')
40 ifelse(-e(long)-, `-01234567890123456789', `yes', `no')
42 ifelse(`-01234567890123456789', -e(long)-, `yes', `no')
44 ifelse(`-'e(long), `-01234567890123456789', `yes', `no')
46 ifelse(-`01234567890123456789', `-'e(long), `yes', `no')
48 ifelse(`-'e(long), `-01234567890123456789-', `yes', `no')
50 ifelse(`-01234567890123456789-', `-'e(long), `yes', `no')
52 ifelse(`-'e(long)`-', `-01234567890123456789-', `yes', `no')
54 ifelse(-`01234567890123456789-', `-'e(long)`-', `yes', `no')
56 ifelse(`-'e(long)`-', `-01234567890123456789', `yes', `no')
58 ifelse(`-01234567890123456789', `-'e(long)`-', `yes', `no')