diff --git a/examples/paragraphs/table.pdf b/examples/paragraphs/table.pdf new file mode 100644 index 00000000..60c6ecab Binary files /dev/null and b/examples/paragraphs/table.pdf differ diff --git a/examples/paragraphs/table.tex b/examples/paragraphs/table.tex index 719b610f..02d7abb9 100644 --- a/examples/paragraphs/table.tex +++ b/examples/paragraphs/table.tex @@ -3,8 +3,8 @@ Here is a table: -\begin{tabular}{p[5cm]} -test +\begin{tabular}{p{5.2pt}} +test2 \end{tabular} \end{document} \ No newline at end of file diff --git a/program/ecote/bin/bin/python b/program/ecote/bin/bin/python new file mode 120000 index 00000000..acd4152a --- /dev/null +++ b/program/ecote/bin/bin/python @@ -0,0 +1 @@ +/usr/bin/python \ No newline at end of file diff --git a/program/ecote/bin/bin/python3 b/program/ecote/bin/bin/python3 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/program/ecote/bin/bin/python3 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/program/ecote/bin/lib64 b/program/ecote/bin/lib64 new file mode 120000 index 00000000..7951405f --- /dev/null +++ b/program/ecote/bin/lib64 @@ -0,0 +1 @@ +lib \ No newline at end of file diff --git a/program/ecote/bin/pyvenv.cfg b/program/ecote/bin/pyvenv.cfg new file mode 100644 index 00000000..71d5caf0 --- /dev/null +++ b/program/ecote/bin/pyvenv.cfg @@ -0,0 +1,5 @@ +home = /usr/bin +include-system-site-packages = false +version = 3.11.3 +executable = /usr/bin/python3.11 +command = /usr/bin/python -m venv /home/kuchy/ecote/project/ECOTE/program/ecote/bin diff --git a/program/tests/test_code/test_parameter_argument.py b/program/tests/test_code/test_parameter_argument.py index 6af74064..ea17822b 100644 --- a/program/tests/test_code/test_parameter_argument.py +++ b/program/tests/test_code/test_parameter_argument.py @@ -14,7 +14,7 @@ def given_unknown_then_error(): When: N/A Then: """ - assert tabular_columns_parameters("l{5cm}") == "Error!" + assert tabular_columns_parameters("l{1.3cm}") == "Error!" def given_p_then_array(): """ @@ -22,10 +22,28 @@ def given_p_then_array(): When: N/A Then: """ - assert tabular_columns_parameters("p{5cm}") == ["p", 5, [5, "cm"]] + assert tabular_columns_parameters("p{1.3pt}") == "style=\"vertical-align: top; width: 1.69px;\"" + +def given_m_then_array(): + """ + Given: + When: N/A + Then: + """ + assert tabular_columns_parameters("m{1.3pt}") == "style=\"vertical-align: middle; width: 1.69px;\"" + +def given_b_then_array(): + """ + Given: + When: N/A + Then: + """ + assert tabular_columns_parameters("b{1.3pt}") == "style=\"vertical-align: bottom; width: 1.69px;\"" def test_parameter_arguments(): given_empty_then_empty() - given_empty_brackets_then_empty() - given_c_then_array() \ No newline at end of file + given_unknown_then_error() + given_p_then_array() + given_m_then_array() + given_b_then_array() \ No newline at end of file diff --git a/program/tests/test_code/test_tabular_columns_parameters.py b/program/tests/test_code/test_tabular_columns_parameters.py index 3d7ffd04..f6520b13 100644 --- a/program/tests/test_code/test_tabular_columns_parameters.py +++ b/program/tests/test_code/test_tabular_columns_parameters.py @@ -50,7 +50,7 @@ def given_line_then_array(): When: N/A Then: """ - assert tabular_columns_parameters("|") == ["{style=\"border-left: 1px solid black;\"}"] + assert tabular_columns_parameters("|") == ["style=\"border-left: 1px solid black;\""] def given_double_line_then_array(): """ @@ -58,7 +58,7 @@ def given_double_line_then_array(): When: N/A Then: """ - assert tabular_columns_parameters("||") == ["{style=\"border-left: 1px solid black;\"}", "{style=\"border-left: 1px solid black;\"}"] + assert tabular_columns_parameters("||") == ["style=\"border-left: 1px solid black;\"", "style=\"border-left: 1px solid black;\""] def given_c_then_array(): """