TESTS: updated error messages in tests.
TESTS: updated error messages in tests.

NikolayShubenkovProgSchool/red,rheber/red,vehar/red,NikolayShubenkovProgSchool/red,red-eco/red,vehar/red,red-eco/red,rheber/red
REBOL [
    Title:   "Red run time error test script"
	Author:  "Peter W A Wood"
	File: 	 %run-time-error-test.r
	Rights:  "Copyright (C) 2011-2012 Peter W A Wood. All rights reserved."
	License: "BSD-3 - https://github.com/dockimbel/Red/blob/origin/BSD-3-License.txt"
]

~~~start-file~~~ "Red run time errors"

	--test-- "rte-1"
		--compile-and-run-this/error {Red[] i: 1 j: 0 k: i / j}
    	--assert-red-printed? "*** Math error: attempt to divide by zero"
    	
    --test-- "rte-2"
    	--compile-and-run-this/error {Red[] absolute -2147483648}
    	--assert-red-printed? "*** Math error: math or number overflow"
    	
     --test-- "rte-3"
    	--compile-and-run-this/error {Red[] #"^^(01)" + #"^^(10FFFF)"}
    	--assert-red-printed? "*** Math Error: math or number overflow"
    	
    --test-- "rte-4"
    	--compile-and-run-this/error {Red[] do [#"^^(01)" + #"^^(10FFFF)"]}
    	--assert-red-printed? "*** Math Error: math or number overflow"
    	
    --test-- "rte-5"
    	--compile-and-run-this/error {Red[] #"^^(00)" - #"^^(01)"}
    	--assert-red-printed? "*** Math Error: math or number overflow"
    	
    --test-- "rte-6"
    	--compile-and-run-this/error {Red[] do [#"^^(00)" - #"^^(01)"]}
    	--assert-red-printed? "*** Math Error: math or number overflow"
    	
    --test-- "rte-7"
    	--compile-and-run-this/error {Red[] #"^^(010FFF)" * #"^^(11)"}
    	--assert-red-printed? "*** Math Error: math or number overflow"
    	
    --test-- "rte-8"
    	--compile-and-run-this/error {Red[] do [#"^^(010FFF)" * #"^^(11)" ]}
    	--assert-red-printed? "*** Math Error: math or number overflow"
  
~~~end-file~~~ 

REBOL [
  Title:   "Red run time error test script"
	Author:  "Peter W A Wood"
	File: 	 %run-time-error-test.r
	Rights:  "Copyright (C) 2011-2012 Peter W A Wood. All rights reserved."
	License: "BSD-3 - https://github.com/dockimbel/Red/blob/origin/BSD-3-License.txt"
]

~~~start-file~~~ "Red run time errors"

	--test-- "rte-1"
		--compile-and-run-this/error {Red[] i: 1 j: 0 k: i / j}
    	--assert-red-printed? "*** Runtime Error 13: integer divide by zero"
    	
    --test-- "rte-2"
    	--compile-and-run-this/error {Red[] absolute -2147483648}
    	--assert-red-printed? "*** Math Error: integer overflow on ABSOLUTE"
    	
     --test-- "rte-3"
    	--compile-and-run-this/error {Red[] #"^^(01)" + #"^^(10FFFF)"}
    	--assert-red-printed? "*** Math Error: char overflow"
    	
    --test-- "rte-4"
    	--compile-and-run-this/error {Red[] do [#"^^(01)" + #"^^(10FFFF)"]}
    	--assert-red-printed? "*** Math Error: char overflow"
    	
    --test-- "rte-5"
    	--compile-and-run-this/error {Red[] #"^^(00)" - #"^^(01)"}
    	--assert-red-printed? "*** Math Error: char overflow"
    	
    --test-- "rte-6"
    	--compile-and-run-this/error {Red[] do [#"^^(00)" - #"^^(01)"]}
    	--assert-red-printed? "*** Math Error: char overflow"
    	
    --test-- "rte-7"
    	--compile-and-run-this/error {Red[] #"^^(010FFF)" * #"^^(11)"}
    	--assert-red-printed? "*** Math Error: char overflow"
    	
    --test-- "rte-8"
    	--compile-and-run-this/error {Red[] do [#"^^(010FFF)" * #"^^(11)" ]}
    	--assert-red-printed? "*** Math Error: char overflow"
  
~~~end-file~~~ 
