| 43 | end |
| 44 | |
| 45 | def test_string |
| 46 | array = build_string_array(["Ruby", "Python", "Ruby"]) |
| 47 | assert_equal(<<-STRING.chomp, array.dictionary_encode.to_s) |
| 48 | |
| 49 | -- dictionary: |
| 50 | [ |
| 51 | "Ruby", |
| 52 | "Python" |
| 53 | ] |
| 54 | -- indices: |
| 55 | [ |
| 56 | 0, |
| 57 | 1, |
| 58 | 0 |
| 59 | ] |
| 60 | STRING |
| 61 | end |
| 62 | end |