| 20 | include Helper::Omittable |
| 21 | |
| 22 | def test_int32 |
| 23 | array = build_int32_array([1, 3, 1, -1, -3, -1]) |
| 24 | assert_equal(<<-STRING.chomp, array.dictionary_encode.to_s) |
| 25 | |
| 26 | -- dictionary: |
| 27 | [ |
| 28 | 1, |
| 29 | 3, |
| 30 | -1, |
| 31 | -3 |
| 32 | ] |
| 33 | -- indices: |
| 34 | [ |
| 35 | 0, |
| 36 | 1, |
| 37 | 0, |
| 38 | 2, |
| 39 | 3, |
| 40 | 2 |
| 41 | ] |
| 42 | STRING |
| 43 | end |
| 44 | |
| 45 | def test_string |
| 46 | array = build_string_array(["Ruby", "Python", "Ruby"]) |