X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Farith.right;h=6d82f1acd1dc9aef9ca7166a01c80ba70cbc1c15;hb=refs%2Ftags%2Fdevel-base-dist;hp=5933620c2853b5ca7e78c632bf5a351f1bd76ae7;hpb=f73dda092b33638d2d5e9c35375f687a607b5403;p=platform%2Fupstream%2Fbash.git diff --git a/tests/arith.right b/tests/arith.right index 5933620..6d82f1a 100644 --- a/tests/arith.right +++ b/tests/arith.right @@ -59,7 +59,7 @@ 1,i+=2 30 1,j+=2 -./arith.tests: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2") +./arith.tests: line 108: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2") 20 6 6,5,3 @@ -79,16 +79,16 @@ 36 62 63 -./arith.tests: 3425#56: illegal arithmetic base (error token is "3425#56") +./arith.tests: line 143: 3425#56: illegal arithmetic base (error token is "3425#56") 0 -./arith.tests: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ") -./arith.tests: 2#44: value too great for base (error token is "2#44") -./arith.tests: 44 / 0 : division by 0 (error token is " ") -./arith.tests: let: jv += $iv: syntax error: operand expected (error token is "$iv") -./arith.tests: jv += $iv : syntax error: operand expected (error token is "$iv ") -./arith.tests: let: rv = 7 + (43 * 6: missing `)' (error token is "6") -./arith.tests: 0#4: bad number (error token is "0#4") -./arith.tests: 2#110#11: bad number (error token is "2#110#11") +./arith.tests: line 149: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ") +./arith.tests: line 150: 2#44: value too great for base (error token is "2#44") +./arith.tests: line 151: 44 / 0 : division by 0 (error token is " ") +./arith.tests: line 152: let: jv += $iv: syntax error: operand expected (error token is "$iv") +./arith.tests: line 153: jv += $iv : syntax error: operand expected (error token is "$iv ") +./arith.tests: line 154: let: rv = 7 + (43 * 6: missing `)' (error token is "6") +./arith.tests: line 158: 0#4: bad number (error token is "0#4") +./arith.tests: line 159: 2#110#11: bad number (error token is "2#110#11") abc def ghi @@ -96,15 +96,15 @@ ok 6 1 0 -./arith.tests: 4 + : syntax error: operand expected (error token is " ") +./arith.tests: line 177: 4 + : syntax error: operand expected (error token is " ") 16 -./arith.tests: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ") -./arith.tests: 1 ? 20 : `:' expected for conditional expression (error token is " ") -./arith.tests: 4 ? 20 : : expression expected (error token is " ") +./arith.tests: line 182: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ") +./arith.tests: line 183: 1 ? 20 : `:' expected for conditional expression (error token is " ") +./arith.tests: line 184: 4 ? 20 : : expression expected (error token is " ") 9 -./arith.tests: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ") +./arith.tests: line 190: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ") 9 -./arith.tests: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ") +./arith.tests: line 193: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ") 9 0 9 @@ -130,20 +130,20 @@ ok 4 4 7 -./arith.tests: 7-- : syntax error: operand expected (error token is " ") -./arith.tests: --x=7 : attempted assignment to non-variable (error token is "=7 ") -./arith.tests: ++x=7 : attempted assignment to non-variable (error token is "=7 ") -./arith.tests: x++=7 : attempted assignment to non-variable (error token is "=7 ") -./arith.tests: x--=7 : attempted assignment to non-variable (error token is "=7 ") +./arith.tests: line 241: 7-- : syntax error: operand expected (error token is " ") +./arith.tests: line 243: --x=7 : attempted assignment to non-variable (error token is "=7 ") +./arith.tests: line 244: ++x=7 : attempted assignment to non-variable (error token is "=7 ") +./arith.tests: line 246: x++=7 : attempted assignment to non-variable (error token is "=7 ") +./arith.tests: line 247: x--=7 : attempted assignment to non-variable (error token is "=7 ") 4 7 -7 7 7 8 12 -./arith.tests: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ") -./arith.tests: a b: syntax error in expression (error token is "b") -./arith.tests: ((: a b: syntax error in expression (error token is "b") +./arith.tests: line 265: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ") +./arith.tests: line 269: a b: syntax error in expression (error token is "b") +./arith.tests: line 270: ((: a b: syntax error in expression (error token is "b") 42 42 42