another testcase, before I go changing the way let] is handled

This commit is contained in:
tg 2015-10-13 21:39:53 +00:00
parent cef386fb60
commit 5018e4a21b

View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.710 2015/10/09 21:36:52 tg Exp $ # $MirOS: src/bin/mksh/check.t,v 1.711 2015/10/13 21:39:53 tg Exp $
# -*- mode: sh -*- # -*- mode: sh -*-
#- #-
# Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
@ -475,6 +475,9 @@ stdin:
va[1975973142]=right va[1975973142]=right
va[4123456789]=wrong va[4123456789]=wrong
echo x7 ${va[#4123456789%2147483647]} echo x7 ${va[#4123456789%2147483647]}
# make sure multiple calculations don't interfere with each other
let '# mca = -4 % -2' ' mcb = -4 % -2'
echo x8 $mca $mcb
expected-stdout: expected-stdout:
x1 -1 4294967295 x1 -1 4294967295
x2 -171510507 4123456789 x2 -171510507 4123456789
@ -483,6 +486,7 @@ expected-stdout:
x5 -171510507 4123456789 x5 -171510507 4123456789
x6 1975973142 1975973142 x6 1975973142 1975973142
x7 right x7 right
x8 -4 0
--- ---
name: arith-limit32-1 name: arith-limit32-1
description: description: