From c0d6913a0aa3a8085a7890810d1bb5f2ad3fa9a5 Mon Sep 17 00:00:00 2001 From: Mattias Wallin Date: Sun, 1 Feb 2026 17:03:44 +0100 Subject: [PATCH] test: Remove ECN (non-ASN.1) example modules If i understand correctly theses modules are in a notation called Encoding Control Notation (ECN), which is similar but not the same as ASN.1. --- .../itu-t_x_x692_2002_Example1-EDM.asn1 | 29 ------------------- .../itu-t_x_x692_2002_Example2-EDM.asn1 | 28 ------------------ .../itu-t_x_x692_2002_Example3-EDM.asn1 | 28 ------------------ ...x_x692_2002_LegacyProtocol-EDM-Module.asn1 | 23 --------------- ...s@itu-t_x_x692_2002_Example1-EDM.asn1.snap | 13 --------- ...s@itu-t_x_x692_2002_Example2-EDM.asn1.snap | 13 --------- ...s@itu-t_x_x692_2002_Example3-EDM.asn1.snap | 13 --------- ...2_2002_LegacyProtocol-EDM-Module.asn1.snap | 12 -------- 8 files changed, 159 deletions(-) delete mode 100644 rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example1-EDM.asn1 delete mode 100644 rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example2-EDM.asn1 delete mode 100644 rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example3-EDM.asn1 delete mode 100644 rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1 delete mode 100644 rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example1-EDM.asn1.snap delete mode 100644 rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example2-EDM.asn1.snap delete mode 100644 rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example3-EDM.asn1.snap delete mode 100644 rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1.snap diff --git a/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example1-EDM.asn1 b/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example1-EDM.asn1 deleted file mode 100644 index 1ad6b9c6..00000000 --- a/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example1-EDM.asn1 +++ /dev/null @@ -1,29 +0,0 @@ - - - - - --- Generated by Ecnp, the pretty-printer of France Telecom R&D - -Example1-EDM {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) edm-module1(3)} -ENCODING-DEFINITIONS ::= -BEGIN - -EXPORTS Example1Encodings; - -IMPORTS - #Married, #Altitude, #EvenPositiveInteger, #EvenNegativeInteger, - #IntegerRightAligned, #IntegerWithHole, #PositiveInteger, #NegativeInteger, - #PositiveIntegerBCD, #Fax, #BinaryFile, #Password, #CharacterStringToBit, - #Sequence1, #Choice, #Sequence2 - FROM Example1-ASN1-Module {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) - asn1-module1(2)}; - -Example1Encodings #ENCODINGS ::= {marriedEncoding-1 | - -- etc - sequence2Encoding} - --- etc -END - - diff --git a/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example2-EDM.asn1 b/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example2-EDM.asn1 deleted file mode 100644 index 5e26e8e4..00000000 --- a/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example2-EDM.asn1 +++ /dev/null @@ -1,28 +0,0 @@ - - - --- Generated by Ecnp, the pretty-printer of France Telecom R&D - -Example2-EDM {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) edm-module2(6)} -ENCODING-DEFINITIONS ::= -BEGIN - -EXPORTS Example2Encodings; - -IMPORTS - #NormallySmallValues, #SparseEvenlyDistributedValue, - #SparseUnevenlyDistributedValueSet, #ConditionalPresenceOnValueSet, - #ConditionalPresenceOnExternalCondition, #EnclosingStructureForList, - #EqualLengthLists, #EnclosingStructureForChoice, #Version1Message - FROM Example2-ASN1-Module {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) - asn1-module2(5)}; - -Example2Encodings #ENCODINGS ::= { - normallySmallValuesEncoding | - -- etc. - extensibleMessageEncoding} - --- etc. -END - - diff --git a/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example3-EDM.asn1 b/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example3-EDM.asn1 deleted file mode 100644 index 055db770..00000000 --- a/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example3-EDM.asn1 +++ /dev/null @@ -1,28 +0,0 @@ - - - --- Generated by Ecnp, the pretty-printer of France Telecom R&D - -Example3-EDM {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) edm-module3(10)} -ENCODING-DEFINITIONS ::= -BEGIN - -EXPORTS Example3Encodings; - -RENAMES - #OPTIONAL AS #Sequence2-optional IN #Sequence2 - #OCTET-STRING AS #Octets3 IN ALL - #OPTIONAL AS #Sequence3-optional IN #Sequence3 - #TAG AS #TAG-4-bits IN #Sequence3 - FROM Example3-ASN1-Module {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) - asn1-module3(9)}; - -Example3Encodings #ENCODINGS ::= { - sequence1-optional-encoding | - -- etc. - sequenceOf-encoding} - --- etc. -END - - diff --git a/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1 b/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1 deleted file mode 100644 index 09f800b0..00000000 --- a/rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1 +++ /dev/null @@ -1,23 +0,0 @@ - - - - - -LegacyProtocol-EDM-Module {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) - edm-module4(13)} ENCODING-DEFINITIONS ::= -BEGIN - -EXPORTS LegacyProtocolEncodings; - -IMPORTS - #LegacyProtocolMessages - FROM LegacyProtocol-ASN1-Module {joint-iso-itu-t(2) asn1(1) ecn(4) - examples(5) asn1-module4(11)}; - -LegacyProtocolEncodings #ENCODINGS ::= { - legacyProtocolMessagesEncoding | message1Encoding} - --- etc. -END - - diff --git a/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example1-EDM.asn1.snap b/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example1-EDM.asn1.snap deleted file mode 100644 index 1304ac29..00000000 --- a/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example1-EDM.asn1.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: rasn-compiler-tests/tests/parse_test.rs -input_file: rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example1-EDM.asn1 ---- -Error matching ASN syntax at while parsing: - ╭─[line 9, column 2] - │ - │ - 6 │ -- Generated by Ecnp, the pretty-printer of France Telecom R&D - 8 │ Example1-EDM {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) edm-module1(3)} - 9 │ ENCODING-DEFINITIONS ::= ◀▪▪▪▪▪▪▪▪▪▪ FAILED AT THIS LINE - │ -───╯ diff --git a/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example2-EDM.asn1.snap b/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example2-EDM.asn1.snap deleted file mode 100644 index 9386aff8..00000000 --- a/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example2-EDM.asn1.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: rasn-compiler-tests/tests/parse_test.rs -input_file: rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example2-EDM.asn1 ---- -Error matching ASN syntax at while parsing: - ╭─[line 7, column 2] - │ - │ - 4 │ -- Generated by Ecnp, the pretty-printer of France Telecom R&D - 6 │ Example2-EDM {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) edm-module2(6)} - 7 │ ENCODING-DEFINITIONS ::= ◀▪▪▪▪▪▪▪▪▪▪ FAILED AT THIS LINE - │ -───╯ diff --git a/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example3-EDM.asn1.snap b/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example3-EDM.asn1.snap deleted file mode 100644 index e90d979c..00000000 --- a/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_Example3-EDM.asn1.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: rasn-compiler-tests/tests/parse_test.rs -input_file: rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_Example3-EDM.asn1 ---- -Error matching ASN syntax at while parsing: - ╭─[line 7, column 2] - │ - │ - 4 │ -- Generated by Ecnp, the pretty-printer of France Telecom R&D - 6 │ Example3-EDM {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) edm-module3(10)} - 7 │ ENCODING-DEFINITIONS ::= ◀▪▪▪▪▪▪▪▪▪▪ FAILED AT THIS LINE - │ -───╯ diff --git a/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1.snap b/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1.snap deleted file mode 100644 index 3e996a97..00000000 --- a/rasn-compiler-tests/tests/snapshots/parse_test__parses_modules@itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: rasn-compiler-tests/tests/parse_test.rs -input_file: rasn-compiler-tests/tests/modules/itu-t_x_x692_2002_LegacyProtocol-EDM-Module.asn1 ---- -Error matching ASN syntax at while parsing: - ╭─[line 7, column 21] - │ - │ - 6 │ LegacyProtocol-EDM-Module {joint-iso-itu-t(2) asn1(1) ecn(4) examples(5) - 7 │ edm-module4(13)} ENCODING-DEFINITIONS ::= ◀▪▪▪▪▪▪▪▪▪▪ FAILED AT THIS LINE - │ -───╯