def test_render_table(self):
    self.assertEqual(render_table(['a', 'empty', 'bcd'], [[123, '', 4], [9999, '', 51]]), 'a    empty bcd\n123        4\n9999       51')
    self.assertEqual(render_table(['a', 'empty', 'bcd'], [[123, '', 4], [9999, '', 51]], hide_empty=True), 'a    bcd\n123  4\n9999 51')
    self.assertEqual(render_table(['\ta', 'bcd'], [['1\t23', 4], ['\t9999', 51]]), '   a bcd\n1 23 4\n9999 51')
    self.assertEqual(render_table(['a', 'bcd'], [[123, 4], [9999, 51]], delim='-'), 'a    bcd\n--------\n123  4\n9999 51')
    self.assertEqual(render_table(['a', 'bcd'], [[123, 4], [9999, 51]], delim='-', extra_gap=2), 'a      bcd\n----------\n123    4\n9999   51')
def test_render_table(self):
    self.assertEqual(render_table(['a', 'empty', 'bcd'], [[123, , 4], [9999, , 51]]), 'a    empty bcd\n123        4\n9999       51')
    self.assertEqual(render_table(['a', 'empty', 'bcd'], [[123, , 4], [9999, , 51]], hide_empty=True), 'a    bcd\n123  4\n9999 51')
    self.assertEqual(render_table(['\ta', 'bcd'], [['1\t23', 4], ['\t9999', 51]]), '   a bcd\n1 23 4\n9999 51')
    self.assertEqual(render_table(['a', 'bcd'], [[123, 4], [9999, 51]], delim='-'), 'a    bcd\n--------\n123  4\n9999 51')
    self.assertEqual(render_table(['a', 'bcd'], [[123, 4], [9999, 51]], delim='-', extra_gap=2), 'a      bcd\n----------\n123    4\n9999   51')