diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-03-06 18:39:16 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-03-06 18:39:16 -0800 |
commit | ee0e67b9d7c275480827d856b926d2c403057bb8 (patch) | |
tree | 4c64d0b7bd4f25292fa73868a7ad3a7820ae4644 /html/apps/factorial.subx.html | |
parent | 8f256f1f2ee6a2a49816dd23d26cd120f526bf0b (diff) | |
download | mu-ee0e67b9d7c275480827d856b926d2c403057bb8.tar.gz |
6091
Diffstat (limited to 'html/apps/factorial.subx.html')
-rw-r--r-- | html/apps/factorial.subx.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/apps/factorial.subx.html b/html/apps/factorial.subx.html index 8c637957..bbd42944 100644 --- a/html/apps/factorial.subx.html +++ b/html/apps/factorial.subx.html @@ -62,14 +62,14 @@ if ('onhashchange' in window) { <span id="L1" class="LineNr"> 1 </span><span class="subxComment">## compute the factorial of 5, and return the result in the exit code</span> <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> -<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ ./subx translate init.linux 0*.subx apps/factorial.subx -o apps/factorial</span> -<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ ./subx run apps/factorial</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ ./bootstrap translate init.linux 0*.subx apps/factorial.subx -o apps/factorial</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ ./bootstrap run apps/factorial</span> <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span> <span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo $?</span> <span id="L8" class="LineNr"> 8 </span><span class="subxComment"># 120</span> <span id="L9" class="LineNr"> 9 </span><span class="subxComment">#</span> <span id="L10" class="LineNr"> 10 </span><span class="subxComment"># You can also run the automated test suite:</span> -<span id="L11" class="LineNr"> 11 </span><span class="subxComment"># $ ./subx run apps/factorial test</span> +<span id="L11" class="LineNr"> 11 </span><span class="subxComment"># $ ./bootstrap run apps/factorial test</span> <span id="L12" class="LineNr"> 12 </span><span class="subxComment"># Expected output:</span> <span id="L13" class="LineNr"> 13 </span><span class="subxComment"># ........</span> <span id="L14" class="LineNr"> 14 </span><span class="subxComment"># Every '.' indicates a passing test. Failing tests get a 'F'.</span> |