|
|
|
|
@ -609,7 +609,7 @@ |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
(deftest test-cargar-const-en-tabla-01 |
|
|
|
|
(deftest test-cargar-const-en-tabla-01 |
|
|
|
|
(testing "Test 01 cargar-const-en-tabla" |
|
|
|
|
(is (= |
|
|
|
|
(cargar-const-en-tabla [ |
|
|
|
|
@ -637,6 +637,9 @@ |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
[; (fn main ( ) { println! ( "{}" , TRES ) }) [use std :: io ; const TRES : i64 = 3] :sin-errores [[0] [[io [lib ()] 0] [[0] [[io [lib ()] 0]] [TRES [const i64] 3]]]] 0 [[CAL 0] HLT] []] |
|
|
|
|
[; (fn main ( ) { println! ( "{}" , TRES ) }) [use std :: io ; const TRES : i64 = 3] :sin-errores [[0] [[io [lib ()] 0] [TRES [const i64] 3]]] 0 [[CAL 0] HLT] []] |
|
|
|
|
|
|
|
|
|
(deftest test-cargar-const-en-tabla-02 |
|
|
|
|
(testing "Test 02 cargar-const-en-tabla" |
|
|
|
|
(is (= |
|
|
|
|
@ -645,7 +648,10 @@ |
|
|
|
|
(list 'fn 'main (symbol "(") (symbol ")") (symbol "{") 'println! (symbol "(") "{}" (symbol ",") 'TRES (symbol ")") (symbol "}")) |
|
|
|
|
['use 'std (symbol "::") 'io (symbol ";") 'const 'TRES (symbol ":") 'i64 (symbol "=") 3] |
|
|
|
|
:sin-errores |
|
|
|
|
[[0] [['io ['lib '()] 0]]] |
|
|
|
|
[[0] [ |
|
|
|
|
['io ['lib '()] 0] |
|
|
|
|
] |
|
|
|
|
] |
|
|
|
|
0 |
|
|
|
|
[['CAL 0] 'HLT] |
|
|
|
|
[] |
|
|
|
|
@ -656,7 +662,11 @@ |
|
|
|
|
(list 'fn 'main (symbol "(") (symbol ")") (symbol "{") 'println! (symbol "(") "{}" (symbol ",") 'TRES (symbol ")") (symbol "}")) |
|
|
|
|
['use 'std (symbol "::") 'io (symbol ";") 'const 'TRES (symbol ":") 'i64 (symbol "=") 3] |
|
|
|
|
:sin-errores |
|
|
|
|
[[0] [['io ['lib '()] 0] ['TRES ['const 'i64] 3]]] |
|
|
|
|
[[0] [ |
|
|
|
|
['io ['lib '()] 0] |
|
|
|
|
['TRES ['const 'i64] 3] |
|
|
|
|
] |
|
|
|
|
] |
|
|
|
|
0 |
|
|
|
|
[['CAL 0] 'HLT] |
|
|
|
|
[] |
|
|
|
|
|