X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Ftests-randomized%2Fbundles%2F04-REAL-bundle.txt;fp=tests%2Ftests-randomized%2Fbundles%2F04-REAL-bundle.txt;h=267baa1fe8ef616b9dc6f5723b06d37c0eb8fdae;hb=70ee6fc793ec8e828067a3569849b6c216054497;hp=0000000000000000000000000000000000000000;hpb=59f84608ec15c016958a6e0e0ddd813f376c0925;p=com%2Fasn1c.git diff --git a/tests/tests-randomized/bundles/04-REAL-bundle.txt b/tests/tests-randomized/bundles/04-REAL-bundle.txt new file mode 100644 index 0000000..267baa1 --- /dev/null +++ b/tests/tests-randomized/bundles/04-REAL-bundle.txt @@ -0,0 +1,7 @@ +-- Test the REAL (floating point) type. +T ::= REAL +T ::= REAL (WITH COMPONENTS { mantissa (-16384..16384), base (2), exponent (-10..10)}) +T ::= REAL (WITH COMPONENTS { mantissa (-16777215..16777215), base (2), exponent (-149..104)}) +T ::= REAL (WITH COMPONENTS { mantissa (-9007199254740991..9007199254740991), base (2), exponent (-1074..971)}) +T ::= Real32 Real32 ::= REAL (WITH COMPONENTS { mantissa (-16777215..16777215), base (2), exponent (-149..104)}) +T ::= Real64 Real64 ::= REAL (WITH COMPONENTS { mantissa (-9007199254740991..9007199254740991), base (2), exponent (-1074..971)})