From 947e98118c300231b9c95681931263b4057b8aaf Mon Sep 17 00:00:00 2001 From: CrossNox Date: Mon, 28 Nov 2022 10:25:37 -0300 Subject: [PATCH] add test --- test/rustint/core_test.clj | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/rustint/core_test.clj b/test/rustint/core_test.clj index bb4b0c2..0169315 100644 --- a/test/rustint/core_test.clj +++ b/test/rustint/core_test.clj @@ -672,3 +672,13 @@ ) ) ) + +(deftest test-inicializar-contexto-local-01 + (testing "Test 01 inicializar-contexto-local" + (is (= + (inicializar-contexto-local + [(symbol "{") (list 'let 'x (symbol ":") 'i64 (symbol "=") 10 (symbol ";") 'println! (symbol "(") "{}" (symbol ",") 'x (symbol ")") (symbol "}")) ['fn 'main (symbol "(") (symbol ")")] 8 [[0] [['main ['fn [() ()]] 2]]] 0 [['CAL 2] 'HLT] []]) + [(symbol "{") (list 'let 'x (symbol ":") 'i64 (symbol "=") 10 (symbol ";") 'println! (symbol "(") "{}" (symbol ",") 'x (symbol ")") (symbol "}")) ['fn 'main (symbol "(") (symbol ")")] 8 [[0] [['main ['fn [() ()]] 2]]] 0 [['CAL 2] 'HLT] []] + )) + ) +)