File tree Expand file tree Collapse file tree
src/test/java/com/amazon/ion/bytecode/bin11 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,19 +17,20 @@ import java.nio.charset.StandardCharsets
1717
1818internal object ByteArrayBytecodeGenerator11Test {
1919
20- @ParameterizedTest
21- @ValueSource(
22- strings = [
23- " 64 4F 97 21 C5 " + // int32 -987654321
24- " 86 35 7D CB 12 2E 22 1B " + // short TS reference to 2023-10-15T11:22:33.444555-00:00
25- " 8F 0C " + // null struct
26- " 6A " + // float 0e0
27- " 6D 18 2D 44 54 FB 21 09 40 " + // float64 3.141592653589793
28- " FE 31 49 20 61 70 70 6c 61 75 64 20 79 6f 75 72 20 63 75 72 69 6f 73 69 74 79 " + // 24-byte blob
29- " 6F " // false
30- ]
31- )
32- fun `generator can compile input containing multiple simple opcodes` (inputBytesString : String ) {
20+ @Test
21+ fun `generator can compile input containing multiple simple opcodes` () {
22+ val inputBytesString = """
23+ 64 4F 97 21 C5 | int -987654321
24+ 86 35 7D CB 12 2E 22 1B | timestamp 2023-10-15T11:22:33.444555-00:00
25+ 8F 0C | null.struct
26+ 6A | float 0e0
27+ 6D 18 2D 44 54 FB 21 09 40 | float 3.141592653589793
28+ FE 31 | 24-byte blob
29+ 49 20 61 70 70 6c 61 75 |
30+ 64 20 79 6f 75 72 20 63 |
31+ 75 72 69 6f 73 69 74 79 |
32+ 6F | false
33+ """ .cleanCommentedHexBytes()
3334 val f64pi = 3.141592653589793
3435 val expectedBytecode = intArrayOf(
3536 Instructions .I_INT_I32 , - 987654321 ,
You can’t perform that action at this time.
0 commit comments