blob: 23dbbb3c8a9ab7f1e4fd49ccd21c16d0ea86f32c [file] [log] [blame]
Denis Vlasenkoa7f4e4b2008-04-02 20:24:09 +00001# busybox expr
2
3# 3*1000*1000*1000 overflows 32-bit signed int
4res=`busybox expr 0 '<' 3000000000`
5[ x"$res" = x1 ] || exit 1
6
7# 9223372036854775807 = 2^31-1
8res=`busybox expr 0 '<' 9223372036854775807`
9[ x"$res" = x1 ] || exit 1
10# coreutils fails this one!
11res=`busybox expr -9223372036854775800 '<' 9223372036854775807`
12[ x"$res" = x1 ] || exit 1
13
14# This one works only by chance
15# res=`busybox expr 0 '<' 9223372036854775808`
16# [ x"$res" = x1 ] || exit 1