diff --git a/test/rustint/core_test.clj b/test/rustint/core_test.clj index 029b6e6..3971157 100644 --- a/test/rustint/core_test.clj +++ b/test/rustint/core_test.clj @@ -957,3 +957,14 @@ )) ) ) + +(deftest test-agregar-ptocoma-02 + (testing "Test main 02 agregar-ptocoma" + (is (= + (agregar-ptocoma + (list 'fn 'main (symbol "(") (symbol ")") 'if 'x '< '0 (symbol "{") 'x '= '- 'x (symbol ";") 'x_cambio '= 'true (symbol ";") (symbol "}") 'print! (symbol "(") "y: " (symbol ")") (symbol ";") (symbol "}") ) + ) + (list 'fn 'main (symbol "(") (symbol ")") 'if 'x '< '0 (symbol "{") 'x '= '- 'x (symbol ";") 'x_cambio '= 'true (symbol ";") (symbol "}") (symbol ";") 'print! (symbol "(") "y: " (symbol ")") (symbol ";") (symbol "}") ) + )) + ) +)