Sha256: 752426d6a0424b004a76f4439292476273b6d9c056cb8d8687aae723deec3061
Contents?: true
Size: 463 Bytes
Versions: 396
Compression:
Stored size: 463 Bytes
Contents
(defmodule trinary-tests (behaviour ltest-unit) (export all)) (include-lib "ltest/include/ltest-macros.lfe") (deftestgen trinary-to-decimal (lc ((<- `#(,decimal ,trinary) '[#(1 "1") #(2 "2") #(3 "10") #(4 "11") #(9 "100") #(14 "112") #(26 "222") #(42 "1120") #(32091 "1122000120") #(0 "carrot")])) `#(,(lists:concat `["trinary " ,trinary " is decimal " ,decimal]) ,(_assertEqual decimal (trinary:to-decimal trinary)))))
Version data entries
396 entries across 396 versions & 1 rubygems