1 ! Copyright (C) 2019-2020 KUSUMOTO Norio.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: tools.test logic logic.examples.factorial ;
5 { { H{ { F 1 } } } } [ { factorial 0 F } query ] unit-test
7 { { H{ { F 1 } } } } [ { factorial 1 F } query ] unit-test
9 { { H{ { F 2 } } } } [ { factorial 2 F } query ] unit-test
11 { { H{ { F 3628800 } } } } [ { factorial 10 F } query ] unit-test