Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | |
michael@0 | 7 | /** |
michael@0 | 8 | File Name: 11.4.7-01.js |
michael@0 | 9 | ECMA Section: 11.4.7 Unary - Operator |
michael@0 | 10 | Description: convert operand to Number type and change sign |
michael@0 | 11 | Author: christine@netscape.com |
michael@0 | 12 | Date: 7 july 1997 |
michael@0 | 13 | */ |
michael@0 | 14 | |
michael@0 | 15 | var SECTION = "11.4.7"; |
michael@0 | 16 | var VERSION = "ECMA_1"; |
michael@0 | 17 | var BUGNUMBER="77391"; |
michael@0 | 18 | |
michael@0 | 19 | startTest(); |
michael@0 | 20 | |
michael@0 | 21 | writeHeaderToLog( SECTION + " Unary + operator"); |
michael@0 | 22 | |
michael@0 | 23 | new TestCase( SECTION, "-('')", -0, -("") ); |
michael@0 | 24 | new TestCase( SECTION, "-(' ')", -0, -(" ") ); |
michael@0 | 25 | new TestCase( SECTION, "-(\\t)", -0, -("\t") ); |
michael@0 | 26 | new TestCase( SECTION, "-(\\n)", -0, -("\n") ); |
michael@0 | 27 | new TestCase( SECTION, "-(\\r)", -0, -("\r") ); |
michael@0 | 28 | new TestCase( SECTION, "-(\\f)", -0, -("\f") ); |
michael@0 | 29 | |
michael@0 | 30 | new TestCase( SECTION, "-(String.fromCharCode(0x0009)", -0, -(String.fromCharCode(0x0009)) ); |
michael@0 | 31 | new TestCase( SECTION, "-(String.fromCharCode(0x0020)", -0, -(String.fromCharCode(0x0020)) ); |
michael@0 | 32 | new TestCase( SECTION, "-(String.fromCharCode(0x000C)", -0, -(String.fromCharCode(0x000C)) ); |
michael@0 | 33 | new TestCase( SECTION, "-(String.fromCharCode(0x000B)", -0, -(String.fromCharCode(0x000B)) ); |
michael@0 | 34 | new TestCase( SECTION, "-(String.fromCharCode(0x000D)", -0, -(String.fromCharCode(0x000D)) ); |
michael@0 | 35 | new TestCase( SECTION, "-(String.fromCharCode(0x000A)", -0, -(String.fromCharCode(0x000A)) ); |
michael@0 | 36 | |
michael@0 | 37 | // a StringNumericLiteral may be preceeded or followed by whitespace and/or |
michael@0 | 38 | // line terminators |
michael@0 | 39 | |
michael@0 | 40 | new TestCase( SECTION, "-( ' ' + 999 )", -999, -( ' '+999) ); |
michael@0 | 41 | new TestCase( SECTION, "-( '\\n' + 999 )", -999, -( '\n' +999) ); |
michael@0 | 42 | new TestCase( SECTION, "-( '\\r' + 999 )", -999, -( '\r' +999) ); |
michael@0 | 43 | new TestCase( SECTION, "-( '\\t' + 999 )", -999, -( '\t' +999) ); |
michael@0 | 44 | new TestCase( SECTION, "-( '\\f' + 999 )", -999, -( '\f' +999) ); |
michael@0 | 45 | |
michael@0 | 46 | new TestCase( SECTION, "-( 999 + ' ' )", -999, -( 999+' ') ); |
michael@0 | 47 | new TestCase( SECTION, "-( 999 + '\\n' )", -999, -( 999+'\n' ) ); |
michael@0 | 48 | new TestCase( SECTION, "-( 999 + '\\r' )", -999, -( 999+'\r' ) ); |
michael@0 | 49 | new TestCase( SECTION, "-( 999 + '\\t' )", -999, -( 999+'\t' ) ); |
michael@0 | 50 | new TestCase( SECTION, "-( 999 + '\\f' )", -999, -( 999+'\f' ) ); |
michael@0 | 51 | |
michael@0 | 52 | new TestCase( SECTION, "-( '\\n' + 999 + '\\n' )", -999, -( '\n' +999+'\n' ) ); |
michael@0 | 53 | new TestCase( SECTION, "-( '\\r' + 999 + '\\r' )", -999, -( '\r' +999+'\r' ) ); |
michael@0 | 54 | new TestCase( SECTION, "-( '\\t' + 999 + '\\t' )", -999, -( '\t' +999+'\t' ) ); |
michael@0 | 55 | new TestCase( SECTION, "-( '\\f' + 999 + '\\f' )", -999, -( '\f' +999+'\f' ) ); |
michael@0 | 56 | |
michael@0 | 57 | new TestCase( SECTION, "-( ' ' + '999' )", -999, -( ' '+'999') ); |
michael@0 | 58 | new TestCase( SECTION, "-( '\\n' + '999' )", -999, -( '\n' +'999') ); |
michael@0 | 59 | new TestCase( SECTION, "-( '\\r' + '999' )", -999, -( '\r' +'999') ); |
michael@0 | 60 | new TestCase( SECTION, "-( '\\t' + '999' )", -999, -( '\t' +'999') ); |
michael@0 | 61 | new TestCase( SECTION, "-( '\\f' + '999' )", -999, -( '\f' +'999') ); |
michael@0 | 62 | |
michael@0 | 63 | new TestCase( SECTION, "-( '999' + ' ' )", -999, -( '999'+' ') ); |
michael@0 | 64 | new TestCase( SECTION, "-( '999' + '\\n' )", -999, -( '999'+'\n' ) ); |
michael@0 | 65 | new TestCase( SECTION, "-( '999' + '\\r' )", -999, -( '999'+'\r' ) ); |
michael@0 | 66 | new TestCase( SECTION, "-( '999' + '\\t' )", -999, -( '999'+'\t' ) ); |
michael@0 | 67 | new TestCase( SECTION, "-( '999' + '\\f' )", -999, -( '999'+'\f' ) ); |
michael@0 | 68 | |
michael@0 | 69 | new TestCase( SECTION, "-( '\\n' + '999' + '\\n' )", -999, -( '\n' +'999'+'\n' ) ); |
michael@0 | 70 | new TestCase( SECTION, "-( '\\r' + '999' + '\\r' )", -999, -( '\r' +'999'+'\r' ) ); |
michael@0 | 71 | new TestCase( SECTION, "-( '\\t' + '999' + '\\t' )", -999, -( '\t' +'999'+'\t' ) ); |
michael@0 | 72 | new TestCase( SECTION, "-( '\\f' + '999' + '\\f' )", -999, -( '\f' +'999'+'\f' ) ); |
michael@0 | 73 | |
michael@0 | 74 | new TestCase( SECTION, "-( String.fromCharCode(0x0009) + '99' )", -99, -( String.fromCharCode(0x0009) + '99' ) ); |
michael@0 | 75 | new TestCase( SECTION, "-( String.fromCharCode(0x0020) + '99' )", -99, -( String.fromCharCode(0x0020) + '99' ) ); |
michael@0 | 76 | new TestCase( SECTION, "-( String.fromCharCode(0x000C) + '99' )", -99, -( String.fromCharCode(0x000C) + '99' ) ); |
michael@0 | 77 | new TestCase( SECTION, "-( String.fromCharCode(0x000B) + '99' )", -99, -( String.fromCharCode(0x000B) + '99' ) ); |
michael@0 | 78 | new TestCase( SECTION, "-( String.fromCharCode(0x000D) + '99' )", -99, -( String.fromCharCode(0x000D) + '99' ) ); |
michael@0 | 79 | new TestCase( SECTION, "-( String.fromCharCode(0x000A) + '99' )", -99, -( String.fromCharCode(0x000A) + '99' ) ); |
michael@0 | 80 | |
michael@0 | 81 | new TestCase( SECTION, "-( String.fromCharCode(0x0009) + '99' + String.fromCharCode(0x0009)", -99, -( String.fromCharCode(0x0009) + '99' + String.fromCharCode(0x0009)) ); |
michael@0 | 82 | new TestCase( SECTION, "-( String.fromCharCode(0x0020) + '99' + String.fromCharCode(0x0020)", -99, -( String.fromCharCode(0x0009) + '99' + String.fromCharCode(0x0020)) ); |
michael@0 | 83 | new TestCase( SECTION, "-( String.fromCharCode(0x000C) + '99' + String.fromCharCode(0x000C)", -99, -( String.fromCharCode(0x0009) + '99' + String.fromCharCode(0x000C)) ); |
michael@0 | 84 | new TestCase( SECTION, "-( String.fromCharCode(0x000D) + '99' + String.fromCharCode(0x000D)", -99, -( String.fromCharCode(0x0009) + '99' + String.fromCharCode(0x000D)) ); |
michael@0 | 85 | new TestCase( SECTION, "-( String.fromCharCode(0x000B) + '99' + String.fromCharCode(0x000B)", -99, -( String.fromCharCode(0x0009) + '99' + String.fromCharCode(0x000B)) ); |
michael@0 | 86 | new TestCase( SECTION, "-( String.fromCharCode(0x000A) + '99' + String.fromCharCode(0x000A)", -99, -( String.fromCharCode(0x0009) + '99' + String.fromCharCode(0x000A)) ); |
michael@0 | 87 | |
michael@0 | 88 | new TestCase( SECTION, "-( '99' + String.fromCharCode(0x0009)", -99, -( '99' + String.fromCharCode(0x0009)) ); |
michael@0 | 89 | new TestCase( SECTION, "-( '99' + String.fromCharCode(0x0020)", -99, -( '99' + String.fromCharCode(0x0020)) ); |
michael@0 | 90 | new TestCase( SECTION, "-( '99' + String.fromCharCode(0x000C)", -99, -( '99' + String.fromCharCode(0x000C)) ); |
michael@0 | 91 | new TestCase( SECTION, "-( '99' + String.fromCharCode(0x000D)", -99, -( '99' + String.fromCharCode(0x000D)) ); |
michael@0 | 92 | new TestCase( SECTION, "-( '99' + String.fromCharCode(0x000B)", -99, -( '99' + String.fromCharCode(0x000B)) ); |
michael@0 | 93 | new TestCase( SECTION, "-( '99' + String.fromCharCode(0x000A)", -99, -( '99' + String.fromCharCode(0x000A)) ); |
michael@0 | 94 | |
michael@0 | 95 | new TestCase( SECTION, "-( String.fromCharCode(0x0009) + 99 )", -99, -( String.fromCharCode(0x0009) + 99 ) ); |
michael@0 | 96 | new TestCase( SECTION, "-( String.fromCharCode(0x0020) + 99 )", -99, -( String.fromCharCode(0x0020) + 99 ) ); |
michael@0 | 97 | new TestCase( SECTION, "-( String.fromCharCode(0x000C) + 99 )", -99, -( String.fromCharCode(0x000C) + 99 ) ); |
michael@0 | 98 | new TestCase( SECTION, "-( String.fromCharCode(0x000B) + 99 )", -99, -( String.fromCharCode(0x000B) + 99 ) ); |
michael@0 | 99 | new TestCase( SECTION, "-( String.fromCharCode(0x000D) + 99 )", -99, -( String.fromCharCode(0x000D) + 99 ) ); |
michael@0 | 100 | new TestCase( SECTION, "-( String.fromCharCode(0x000A) + 99 )", -99, -( String.fromCharCode(0x000A) + 99 ) ); |
michael@0 | 101 | |
michael@0 | 102 | new TestCase( SECTION, "-( String.fromCharCode(0x0009) + 99 + String.fromCharCode(0x0009)", -99, -( String.fromCharCode(0x0009) + 99 + String.fromCharCode(0x0009)) ); |
michael@0 | 103 | new TestCase( SECTION, "-( String.fromCharCode(0x0020) + 99 + String.fromCharCode(0x0020)", -99, -( String.fromCharCode(0x0009) + 99 + String.fromCharCode(0x0020)) ); |
michael@0 | 104 | new TestCase( SECTION, "-( String.fromCharCode(0x000C) + 99 + String.fromCharCode(0x000C)", -99, -( String.fromCharCode(0x0009) + 99 + String.fromCharCode(0x000C)) ); |
michael@0 | 105 | new TestCase( SECTION, "-( String.fromCharCode(0x000D) + 99 + String.fromCharCode(0x000D)", -99, -( String.fromCharCode(0x0009) + 99 + String.fromCharCode(0x000D)) ); |
michael@0 | 106 | new TestCase( SECTION, "-( String.fromCharCode(0x000B) + 99 + String.fromCharCode(0x000B)", -99, -( String.fromCharCode(0x0009) + 99 + String.fromCharCode(0x000B)) ); |
michael@0 | 107 | new TestCase( SECTION, "-( String.fromCharCode(0x000A) + 99 + String.fromCharCode(0x000A)", -99, -( String.fromCharCode(0x0009) + 99 + String.fromCharCode(0x000A)) ); |
michael@0 | 108 | |
michael@0 | 109 | new TestCase( SECTION, "-( 99 + String.fromCharCode(0x0009)", -99, -( 99 + String.fromCharCode(0x0009)) ); |
michael@0 | 110 | new TestCase( SECTION, "-( 99 + String.fromCharCode(0x0020)", -99, -( 99 + String.fromCharCode(0x0020)) ); |
michael@0 | 111 | new TestCase( SECTION, "-( 99 + String.fromCharCode(0x000C)", -99, -( 99 + String.fromCharCode(0x000C)) ); |
michael@0 | 112 | new TestCase( SECTION, "-( 99 + String.fromCharCode(0x000D)", -99, -( 99 + String.fromCharCode(0x000D)) ); |
michael@0 | 113 | new TestCase( SECTION, "-( 99 + String.fromCharCode(0x000B)", -99, -( 99 + String.fromCharCode(0x000B)) ); |
michael@0 | 114 | new TestCase( SECTION, "-( 99 + String.fromCharCode(0x000A)", -99, -( 99 + String.fromCharCode(0x000A)) ); |
michael@0 | 115 | |
michael@0 | 116 | |
michael@0 | 117 | // StrNumericLiteral:::StrDecimalLiteral:::Infinity |
michael@0 | 118 | |
michael@0 | 119 | new TestCase( SECTION, "-('Infinity')", -Math.pow(10,10000), -("Infinity") ); |
michael@0 | 120 | new TestCase( SECTION, "-('-Infinity')", +Math.pow(10,10000), -("-Infinity") ); |
michael@0 | 121 | new TestCase( SECTION, "-('+Infinity')", -Math.pow(10,10000), -("+Infinity") ); |
michael@0 | 122 | |
michael@0 | 123 | // StrNumericLiteral::: StrDecimalLiteral ::: DecimalDigits . DecimalDigits opt ExponentPart opt |
michael@0 | 124 | |
michael@0 | 125 | new TestCase( SECTION, "-('0')", -0, -("0") ); |
michael@0 | 126 | new TestCase( SECTION, "-('-0')", +0, -("-0") ); |
michael@0 | 127 | new TestCase( SECTION, "-('+0')", -0, -("+0") ); |
michael@0 | 128 | |
michael@0 | 129 | new TestCase( SECTION, "-('1')", -1, -("1") ); |
michael@0 | 130 | new TestCase( SECTION, "-('-1')", +1, -("-1") ); |
michael@0 | 131 | new TestCase( SECTION, "-('+1')", -1, -("+1") ); |
michael@0 | 132 | |
michael@0 | 133 | new TestCase( SECTION, "-('2')", -2, -("2") ); |
michael@0 | 134 | new TestCase( SECTION, "-('-2')", +2, -("-2") ); |
michael@0 | 135 | new TestCase( SECTION, "-('+2')", -2, -("+2") ); |
michael@0 | 136 | |
michael@0 | 137 | new TestCase( SECTION, "-('3')", -3, -("3") ); |
michael@0 | 138 | new TestCase( SECTION, "-('-3')", +3, -("-3") ); |
michael@0 | 139 | new TestCase( SECTION, "-('+3')", -3, -("+3") ); |
michael@0 | 140 | |
michael@0 | 141 | new TestCase( SECTION, "-('4')", -4, -("4") ); |
michael@0 | 142 | new TestCase( SECTION, "-('-4')", +4, -("-4") ); |
michael@0 | 143 | new TestCase( SECTION, "-('+4')", -4, -("+4") ); |
michael@0 | 144 | |
michael@0 | 145 | new TestCase( SECTION, "-('5')", -5, -("5") ); |
michael@0 | 146 | new TestCase( SECTION, "-('-5')", +5, -("-5") ); |
michael@0 | 147 | new TestCase( SECTION, "-('+5')", -5, -("+5") ); |
michael@0 | 148 | |
michael@0 | 149 | new TestCase( SECTION, "-('6')", -6, -("6") ); |
michael@0 | 150 | new TestCase( SECTION, "-('-6')", +6, -("-6") ); |
michael@0 | 151 | new TestCase( SECTION, "-('+6')", -6, -("+6") ); |
michael@0 | 152 | |
michael@0 | 153 | new TestCase( SECTION, "-('7')", -7, -("7") ); |
michael@0 | 154 | new TestCase( SECTION, "-('-7')", +7, -("-7") ); |
michael@0 | 155 | new TestCase( SECTION, "-('+7')", -7, -("+7") ); |
michael@0 | 156 | |
michael@0 | 157 | new TestCase( SECTION, "-('8')", -8, -("8") ); |
michael@0 | 158 | new TestCase( SECTION, "-('-8')", +8, -("-8") ); |
michael@0 | 159 | new TestCase( SECTION, "-('+8')", -8, -("+8") ); |
michael@0 | 160 | |
michael@0 | 161 | new TestCase( SECTION, "-('9')", -9, -("9") ); |
michael@0 | 162 | new TestCase( SECTION, "-('-9')", +9, -("-9") ); |
michael@0 | 163 | new TestCase( SECTION, "-('+9')", -9, -("+9") ); |
michael@0 | 164 | |
michael@0 | 165 | new TestCase( SECTION, "-('3.14159')", -3.14159, -("3.14159") ); |
michael@0 | 166 | new TestCase( SECTION, "-('-3.14159')", +3.14159, -("-3.14159") ); |
michael@0 | 167 | new TestCase( SECTION, "-('+3.14159')", -3.14159, -("+3.14159") ); |
michael@0 | 168 | |
michael@0 | 169 | new TestCase( SECTION, "-('3.')", -3, -("3.") ); |
michael@0 | 170 | new TestCase( SECTION, "-('-3.')", +3, -("-3.") ); |
michael@0 | 171 | new TestCase( SECTION, "-('+3.')", -3, -("+3.") ); |
michael@0 | 172 | |
michael@0 | 173 | new TestCase( SECTION, "-('3.e1')", -30, -("3.e1") ); |
michael@0 | 174 | new TestCase( SECTION, "-('-3.e1')", +30, -("-3.e1") ); |
michael@0 | 175 | new TestCase( SECTION, "-('+3.e1')", -30, -("+3.e1") ); |
michael@0 | 176 | |
michael@0 | 177 | new TestCase( SECTION, "-('3.e+1')", -30, -("3.e+1") ); |
michael@0 | 178 | new TestCase( SECTION, "-('-3.e+1')", +30, -("-3.e+1") ); |
michael@0 | 179 | new TestCase( SECTION, "-('+3.e+1')", -30, -("+3.e+1") ); |
michael@0 | 180 | |
michael@0 | 181 | new TestCase( SECTION, "-('3.e-1')", -.30, -("3.e-1") ); |
michael@0 | 182 | new TestCase( SECTION, "-('-3.e-1')", +.30, -("-3.e-1") ); |
michael@0 | 183 | new TestCase( SECTION, "-('+3.e-1')", -.30, -("+3.e-1") ); |
michael@0 | 184 | |
michael@0 | 185 | // StrDecimalLiteral::: .DecimalDigits ExponentPart opt |
michael@0 | 186 | |
michael@0 | 187 | new TestCase( SECTION, "-('.00001')", -0.00001, -(".00001") ); |
michael@0 | 188 | new TestCase( SECTION, "-('+.00001')", -0.00001, -("+.00001") ); |
michael@0 | 189 | new TestCase( SECTION, "-('-0.0001')", +0.00001, -("-.00001") ); |
michael@0 | 190 | |
michael@0 | 191 | new TestCase( SECTION, "-('.01e2')", -1, -(".01e2") ); |
michael@0 | 192 | new TestCase( SECTION, "-('+.01e2')", -1, -("+.01e2") ); |
michael@0 | 193 | new TestCase( SECTION, "-('-.01e2')", +1, -("-.01e2") ); |
michael@0 | 194 | |
michael@0 | 195 | new TestCase( SECTION, "-('.01e+2')", -1, -(".01e+2") ); |
michael@0 | 196 | new TestCase( SECTION, "-('+.01e+2')", -1, -("+.01e+2") ); |
michael@0 | 197 | new TestCase( SECTION, "-('-.01e+2')", +1, -("-.01e+2") ); |
michael@0 | 198 | |
michael@0 | 199 | new TestCase( SECTION, "-('.01e-2')", -0.0001, -(".01e-2") ); |
michael@0 | 200 | new TestCase( SECTION, "-('+.01e-2')", -0.0001, -("+.01e-2") ); |
michael@0 | 201 | new TestCase( SECTION, "-('-.01e-2')", +0.0001, -("-.01e-2") ); |
michael@0 | 202 | |
michael@0 | 203 | // StrDecimalLiteral::: DecimalDigits ExponentPart opt |
michael@0 | 204 | |
michael@0 | 205 | new TestCase( SECTION, "-('1234e5')", -123400000, -("1234e5") ); |
michael@0 | 206 | new TestCase( SECTION, "-('+1234e5')", -123400000, -("+1234e5") ); |
michael@0 | 207 | new TestCase( SECTION, "-('-1234e5')", +123400000, -("-1234e5") ); |
michael@0 | 208 | |
michael@0 | 209 | new TestCase( SECTION, "-('1234e+5')", -123400000, -("1234e+5") ); |
michael@0 | 210 | new TestCase( SECTION, "-('+1234e+5')", -123400000, -("+1234e+5") ); |
michael@0 | 211 | new TestCase( SECTION, "-('-1234e+5')", +123400000, -("-1234e+5") ); |
michael@0 | 212 | |
michael@0 | 213 | new TestCase( SECTION, "-('1234e-5')", -0.01234, -("1234e-5") ); |
michael@0 | 214 | new TestCase( SECTION, "-('+1234e-5')", -0.01234, -("+1234e-5") ); |
michael@0 | 215 | new TestCase( SECTION, "-('-1234e-5')", +0.01234, -("-1234e-5") ); |
michael@0 | 216 | |
michael@0 | 217 | // StrNumericLiteral::: HexIntegerLiteral |
michael@0 | 218 | |
michael@0 | 219 | new TestCase( SECTION, "-('0x0')", -0, -("0x0")); |
michael@0 | 220 | new TestCase( SECTION, "-('0x1')", -1, -("0x1")); |
michael@0 | 221 | new TestCase( SECTION, "-('0x2')", -2, -("0x2")); |
michael@0 | 222 | new TestCase( SECTION, "-('0x3')", -3, -("0x3")); |
michael@0 | 223 | new TestCase( SECTION, "-('0x4')", -4, -("0x4")); |
michael@0 | 224 | new TestCase( SECTION, "-('0x5')", -5, -("0x5")); |
michael@0 | 225 | new TestCase( SECTION, "-('0x6')", -6, -("0x6")); |
michael@0 | 226 | new TestCase( SECTION, "-('0x7')", -7, -("0x7")); |
michael@0 | 227 | new TestCase( SECTION, "-('0x8')", -8, -("0x8")); |
michael@0 | 228 | new TestCase( SECTION, "-('0x9')", -9, -("0x9")); |
michael@0 | 229 | new TestCase( SECTION, "-('0xa')", -10, -("0xa")); |
michael@0 | 230 | new TestCase( SECTION, "-('0xb')", -11, -("0xb")); |
michael@0 | 231 | new TestCase( SECTION, "-('0xc')", -12, -("0xc")); |
michael@0 | 232 | new TestCase( SECTION, "-('0xd')", -13, -("0xd")); |
michael@0 | 233 | new TestCase( SECTION, "-('0xe')", -14, -("0xe")); |
michael@0 | 234 | new TestCase( SECTION, "-('0xf')", -15, -("0xf")); |
michael@0 | 235 | new TestCase( SECTION, "-('0xA')", -10, -("0xA")); |
michael@0 | 236 | new TestCase( SECTION, "-('0xB')", -11, -("0xB")); |
michael@0 | 237 | new TestCase( SECTION, "-('0xC')", -12, -("0xC")); |
michael@0 | 238 | new TestCase( SECTION, "-('0xD')", -13, -("0xD")); |
michael@0 | 239 | new TestCase( SECTION, "-('0xE')", -14, -("0xE")); |
michael@0 | 240 | new TestCase( SECTION, "-('0xF')", -15, -("0xF")); |
michael@0 | 241 | |
michael@0 | 242 | new TestCase( SECTION, "-('0X0')", -0, -("0X0")); |
michael@0 | 243 | new TestCase( SECTION, "-('0X1')", -1, -("0X1")); |
michael@0 | 244 | new TestCase( SECTION, "-('0X2')", -2, -("0X2")); |
michael@0 | 245 | new TestCase( SECTION, "-('0X3')", -3, -("0X3")); |
michael@0 | 246 | new TestCase( SECTION, "-('0X4')", -4, -("0X4")); |
michael@0 | 247 | new TestCase( SECTION, "-('0X5')", -5, -("0X5")); |
michael@0 | 248 | new TestCase( SECTION, "-('0X6')", -6, -("0X6")); |
michael@0 | 249 | new TestCase( SECTION, "-('0X7')", -7, -("0X7")); |
michael@0 | 250 | new TestCase( SECTION, "-('0X8')", -8, -("0X8")); |
michael@0 | 251 | new TestCase( SECTION, "-('0X9')", -9, -("0X9")); |
michael@0 | 252 | new TestCase( SECTION, "-('0Xa')", -10, -("0Xa")); |
michael@0 | 253 | new TestCase( SECTION, "-('0Xb')", -11, -("0Xb")); |
michael@0 | 254 | new TestCase( SECTION, "-('0Xc')", -12, -("0Xc")); |
michael@0 | 255 | new TestCase( SECTION, "-('0Xd')", -13, -("0Xd")); |
michael@0 | 256 | new TestCase( SECTION, "-('0Xe')", -14, -("0Xe")); |
michael@0 | 257 | new TestCase( SECTION, "-('0Xf')", -15, -("0Xf")); |
michael@0 | 258 | new TestCase( SECTION, "-('0XA')", -10, -("0XA")); |
michael@0 | 259 | new TestCase( SECTION, "-('0XB')", -11, -("0XB")); |
michael@0 | 260 | new TestCase( SECTION, "-('0XC')", -12, -("0XC")); |
michael@0 | 261 | new TestCase( SECTION, "-('0XD')", -13, -("0XD")); |
michael@0 | 262 | new TestCase( SECTION, "-('0XE')", -14, -("0XE")); |
michael@0 | 263 | new TestCase( SECTION, "-('0XF')", -15, -("0XF")); |
michael@0 | 264 | |
michael@0 | 265 | test(); |