/[eiffelstudio]/trunk/eweasel/tests/lib045/test.e
ViewVC logotype

Contents of /trunk/eweasel/tests/lib045/test.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100035 - (show annotations)
Thu Mar 23 20:27:34 2017 UTC (2 years, 8 months ago) by alexk
File size: 624 byte(s)
Added an example that demonstrates an issue in the implementation of HEXADECIMAL_STRING_TO_INTEGER_CONVERTER.
1 class TEST
2 create
3 make
4 feature
5 make
6 local
7 h: HEXADECIMAL_STRING_TO_INTEGER_CONVERTER
8 do
9 io.put_string ("Test 1: ")
10 create h.make
11 h.parse_string_with_type ("-90", {NUMERIC_INFORMATION}.type_natural_32)
12 if h.is_integral_integer then
13 io.put_natural_32 (h.parsed_natural_32)
14 else
15 io.put_string ("OK")
16 end
17 io.put_new_line
18
19 io.put_string ("Test 2: ")
20 create h.make
21 h.parse_string_with_type ("-x90", {NUMERIC_INFORMATION}.type_natural_32)
22 if h.is_integral_integer then
23 io.put_natural_32 (h.parsed_natural_32)
24 else
25 io.put_string ("OK")
26 end
27 io.put_new_line
28 end
29 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23