Compare commits

...

2 Commits

  1. 3
      src/rustint/core.clj
  2. 11
      test/rustint/core_test.clj

@ -2533,7 +2533,8 @@
(cond (cond
(string? arg) "%s" (string? arg) "%s"
(int? arg) "%d" (int? arg) "%d"
(and (float? arg) (nil? rustf)) "%.0f" (and (float? arg) (nil? rustf) (== (pasar-a-int arg) arg)) "%.0f"
(and (float? arg) (nil? rustf)) "%f"
(and (float? arg) (not (nil? rustf))) (format "%%%sf" rustf) (and (float? arg) (not (nil? rustf))) (format "%%%sf" rustf)
) )
) )

@ -479,6 +479,17 @@
) )
) )
(deftest test-especificador-formato-06
(testing "Test 06 especificador formato"
(is (=
(especificador-formato 2.1 nil)
"%f"
)
)
)
)
(deftest test-listar-01 (deftest test-listar-01
(testing "Test 01 listar" (testing "Test 01 listar"
(let [ (let [

Loading…
Cancel
Save