diff options
author | Björn Gustavsson <[email protected]> | 2013-11-29 10:24:49 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-11-29 10:48:11 +0100 |
commit | bdf9ae38e1563c8304bf411c6e0655622246b20b (patch) | |
tree | 9dbafdbb33e3389f2c93cd0ca0c28f70370424ea /lib/asn1/test/testConstraints.erl | |
parent | 20641fe0f2ea745873fc7557448d3a7deb1bd639 (diff) | |
download | otp-bdf9ae38e1563c8304bf411c6e0655622246b20b.tar.gz otp-bdf9ae38e1563c8304bf411c6e0655622246b20b.tar.bz2 otp-bdf9ae38e1563c8304bf411c6e0655622246b20b.zip |
PER/UPER: Handle a range in the extension part of the constraint
Constraints such as:
INTEGER (1..10, ..., 11..20)
would fail to compile. Make sure it is properly ignored.
Diffstat (limited to 'lib/asn1/test/testConstraints.erl')
-rw-r--r-- | lib/asn1/test/testConstraints.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asn1/test/testConstraints.erl b/lib/asn1/test/testConstraints.erl index 03a09492af..3d04a1514b 100644 --- a/lib/asn1/test/testConstraints.erl +++ b/lib/asn1/test/testConstraints.erl @@ -70,6 +70,8 @@ int_constraints(Rules) -> %%========================================================== LastNumWithoutLengthEncoding = 65536, roundtrip('Range256to65536', LastNumWithoutLengthEncoding), + roundtrip('Range256to65536Ext', LastNumWithoutLengthEncoding), + roundtrip('Range256to65536Ext', 42), FirstNumWithLengthEncoding = 65537, roundtrip('LargeConstraints', 'RangeMax', FirstNumWithLengthEncoding), @@ -95,6 +97,8 @@ int_constraints(Rules) -> %% Random number within longlong range LongLong = 12672809400538808320, roundtrip('LongLong', LongLong), + roundtrip('LongLongExt', LongLong), + roundtrip('LongLongExt', -10000), %%========================================================== %% Constraint Combinations (Duboisson p. 285) |