less aggressive factorial test with 12
authorFred T. Hamster <fred@feistymeow.org>
Wed, 11 Feb 2026 03:01:52 +0000 (22:01 -0500)
committerFred T. Hamster <fred@feistymeow.org>
Wed, 11 Feb 2026 03:01:52 +0000 (22:01 -0500)
37 was too big a factorial, just because i was using ints and they can't represent the number for 37!.
so, 12 is much nicer.

nucleus/library/tests_application/test_callstack_tracker.cpp

index 825f0c70fffb64f06371b50041406725912fb5f7..4823586c3f4e3c4bf9b18683141f32ed6bbc49cc 100644 (file)
@@ -118,7 +118,9 @@ int test_callstack_tracker::run_filestack_middling()
 int test_callstack_tracker::run_filestack_complex()
 {
   FUNCDEF("run_filestack_complex")
-  int factotum = recursive_factorial(37);
+  int fact_sought = 12;
+  int factotum = recursive_factorial(12);
+  LOG(a_sprintf("factorial of %d was computed as %d", fact_sought, factotum));
   if (factotum < 0) {
     // uh-oh, there was an actual failure of some sort.
     return 1;