@@ -0,0 +1,1290 @@
+#!/usr/bin/env python3%0A%22%22%22%0A%60header%60 and %60markdown%60 is checked by %60test_to_bool%60 instead%0A%22%22%22%0Afrom .context import pandoc_tables%0A%0A%0Adef test_check_table_options():%0A    options = %7B%0A        'caption': None,%0A        'alignment': None,%0A        'width': None,%0A        'table-width': 1.0,%0A        'header': True,%0A        'markdown': True,%0A        'include': None%0A    %7D%0A    # check init is preserved%0A    assert pandoc_tables.check_table_options(options) == options%0A    # check width%0A    # negative%0A    options%5B'width'%5D = %5B0.1, -0.2%5D%0A    assert pandoc_tables.check_table_options(options)%5B'width'%5D == %5B0.1, 0%5D%0A    # invalid%0A    options%5B'width'%5D = %22happy%22%0A    assert pandoc_tables.check_table_options(options)%5B'width'%5D == None%0A    # check table-width%0A    # negative%0A    options%5B'table-width'%5D = -1%0A    assert pandoc_tables.check_table_options(options)%5B'table-width'%5D == 1.0%0A    # invalid%0A    options%5B'table-width'%5D = %22happy%22%0A    assert pandoc_tables.check_table_options(options)%5B'table-width'%5D == 1.0%0A    # check include%0A    options%5B'include'%5D = 'abc.xyz'%0A    assert pandoc_tables.check_table_options(options)%5B'include'%5D == None%0A    options%5B'include'%5D = 'tests/csv_tables.csv'%0A    assert (%0A        pandoc_tables.check_table_options(options)%5B'include'%5D ==%0A        'tests/csv_tables.csv'%0A    )%0A    return%0A

add test_check_table_options.py