()
| 606 | } |
| 607 | |
| 608 | @Test |
| 609 | public void testBlockCountMessage() { |
| 610 | byte[] compressed = { |
| 611 | (byte) 0x1b, (byte) 0x0b, (byte) 0x00, (byte) 0x11, (byte) 0x01, (byte) 0x8c, (byte) 0xc1, |
| 612 | (byte) 0xc5, (byte) 0x0d, (byte) 0x08, (byte) 0x00, (byte) 0x22, (byte) 0x65, (byte) 0xe1, |
| 613 | (byte) 0xfc, (byte) 0xfd, (byte) 0x22, (byte) 0x2c, (byte) 0xc4, (byte) 0x00, (byte) 0x00, |
| 614 | (byte) 0x38, (byte) 0xd8, (byte) 0x32, (byte) 0x89, (byte) 0x01, (byte) 0x12, (byte) 0x00, |
| 615 | (byte) 0x00, (byte) 0x77, (byte) 0xda, (byte) 0x04, (byte) 0x10, (byte) 0x42, (byte) 0x00, |
| 616 | (byte) 0x00, (byte) 0x00 |
| 617 | }; |
| 618 | checkSynth( |
| 619 | /* |
| 620 | * // Same as BlockSwitchMessage but also uses 0-bit block-type commands. |
| 621 | * main_header |
| 622 | * metablock_header_begin: 1, 0, 12, 0 |
| 623 | * // two literal block types |
| 624 | * vlq_blocktypes: 2 |
| 625 | * huffman_simple: 1,1,4, 1 // literal blocktype prefix code |
| 626 | * huffman_fixed: 26 // literal blockcount prefix code |
| 627 | * blockcount_easy: 2 // 2 a's |
| 628 | * // one ins/copy and dist block type |
| 629 | * vlq_blocktypes: 1 |
| 630 | * vlq_blocktypes: 1 |
| 631 | * ndirect: 0, 0 |
| 632 | * // two MSB6 literal context modes |
| 633 | * bits: "00", "00" |
| 634 | * // two literal prefix codes |
| 635 | * vlq_blocktypes: 2 |
| 636 | * // literal context map |
| 637 | * vlq_rlemax: 5 |
| 638 | * huffman_simple: 0,3,7, 5,0,6 // context map RLE Huffman code |
| 639 | * // context map RLE: repeat 0 64 times, 1+5 64 times |
| 640 | * bits: "01", "0", "11111", "11", "0", "11111" |
| 641 | * bit: 1 // MTF enabled |
| 642 | * // one distance prefix code |
| 643 | * vlq_blocktypes: 1 |
| 644 | * huffman_simple: 0,1,256, 97 // only a's |
| 645 | * huffman_simple: 0,1,256, 98 // only b's |
| 646 | * huffman_fixed: 704 |
| 647 | * huffman_fixed: 64 |
| 648 | * // now comes the data |
| 649 | * command_inscopy_easy: 12, 0 |
| 650 | * blockcount_easy: 2 // switch to other block type; 2 b's |
| 651 | * blockcount_easy: 5 // switch to other block type; 5 a's |
| 652 | * blockcount_easy: 1 // switch to other block type; 1 b |
| 653 | * blockcount_easy: 1 // switch to other block type; 1 a |
| 654 | * blockcount_easy: 1 // switch to other block type; 1 b |
| 655 | */ |
| 656 | compressed, |
| 657 | true, |
| 658 | "aabbaaaaabab" |
| 659 | ); |
| 660 | } |
| 661 | |
| 662 | @Test |
| 663 | public void testBlockSwitchMessage() { |
nothing calls this directly
no test coverage detected