| 33 | end |
| 34 | |
| 35 | def test_buffer |
| 36 | midnight = 0 |
| 37 | after_midnight = 60 * 10 # 00:10:00 |
| 38 | raw_data = [midnight, after_midnight] |
| 39 | array = build_time32_array(:second, raw_data) |
| 40 | assert_equal(raw_data.pack("l*"), |
| 41 | array.buffer.data.to_s) |
| 42 | end |
| 43 | |
| 44 | def test_value |
| 45 | after_midnight = 60 * 10 # 00:10:00 |