about summary refs log tree commit diff stats
path: root/subx/apps/factorial
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-21 13:44:16 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-21 13:44:16 -0700
commitcaaeccd68e2baf49c4df5ada5799cffcecb51c60 (patch)
treebd41ab2a45b490cc78b18c589cef3cf4d938c967 /subx/apps/factorial
parent0828df68de1defe68d63fd19cd3ed76be09918c8 (diff)
downloadmu-caaeccd68e2baf49c4df5ada5799cffcecb51c60.tar.gz
4567 - support automated tests in SubX
All it takes is to code-generate a simple function called 'run_tests' that
calls all functions starting with 'test_' one by one.

I've temporarily switched the factorial app to run as a test. But that's
temporary, because all the code to print '.' vs 'F' needs to get extracted
out into a helper.
Diffstat (limited to 'subx/apps/factorial')
-rwxr-xr-xsubx/apps/factorialbin167 -> 284 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/subx/apps/factorial b/subx/apps/factorial
index e60e7d21..15fa68ec 100755
--- a/subx/apps/factorial
+++ b/subx/apps/factorial
Binary files differ