Autogram checker: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added 197/179 test output) |
m (→{{header|Phix}}: removed some trailing spaces in the constant) |
||
Line 204: | Line 204: | ||
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span> |
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span> |
||
<span style="color: #008080;">constant</span> <span style="color: #000000;">tests</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">split</span><span style="color: #0000FF;">(</span><span style="color: #7060A8;">substitute</span><span style="color: #0000FF;">(</span><span style="color: #008000;">""" |
<span style="color: #008080;">constant</span> <span style="color: #000000;">tests</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">split</span><span style="color: #0000FF;">(</span><span style="color: #7060A8;">substitute</span><span style="color: #0000FF;">(</span><span style="color: #008000;">""" |
||
1. This sentence employs two a's, two c's, two d's, twenty-eight e's, |
1. This sentence employs two a's, two c's, two d's, twenty-eight e's, |
||
five f's, three g's, eight h's, eleven i's, three l's, two m's, |
five f's, three g's, eight h's, eleven i's, three l's, two m's, |
||
thirteen n's, nine o's, two p's, five r's, twenty-five s's, |
thirteen n's, nine o's, two p's, five r's, twenty-five s's, |
||
twenty-three t's, six v's, ten w's, two x's, five y's, and one z. |
twenty-three t's, six v's, ten w's, two x's, five y's, and one z. |
||
2. This sentence employs two a's, two c's, two d's, twenty eight e's, |
2. This sentence employs two a's, two c's, two d's, twenty eight e's, |
||
five f's, three g's, eight h's, eleven i's, three l's, two m's, |
five f's, three g's, eight h's, eleven i's, three l's, two m's, |
||
thirteen n's, nine o's, two p's, five r's, twenty five s's, |
thirteen n's, nine o's, two p's, five r's, twenty five s's, |
||
twenty three t's, six v's, ten w's, two x's, five y's, and one z. |
twenty three t's, six v's, ten w's, two x's, five y's, and one z. |
||
3. Only the fool would take trouble to verify that his sentence was |
3. Only the fool would take trouble to verify that his sentence was |
||
composed of ten a's, three b's, four c's, four d's, forty-six e's, |
composed of ten a's, three b's, four c's, four d's, forty-six e's, |
||
sixteen f's, four g's, thirteen h's, fifteen i's, two k's, nine l's, |
sixteen f's, four g's, thirteen h's, fifteen i's, two k's, nine l's, |
||
four m's, twenty-five n's, twenty-four o's, five p's, sixteen r's, |
four m's, twenty-five n's, twenty-four o's, five p's, sixteen r's, |
||
forty-one s's, thirty-seven t's, ten u's, eight v's, eight w's, |
forty-one s's, thirty-seven t's, ten u's, eight v's, eight w's, |
||
four x's, eleven y's, twenty-seven commas, twenty-three apostrophes, |
four x's, eleven y's, twenty-seven commas, twenty-three apostrophes, |
||
seven hyphens and, last but not least, a single ! |
seven hyphens and, last but not least, a single ! |
||
4. This pangram contains four as, one b, two cs, one d, thirty es, |
4. This pangram contains four as, one b, two cs, one d, thirty es, |
||
six fs, five gs, seven hs, eleven is, one j, one k, two ls, two ms, |
six fs, five gs, seven hs, eleven is, one j, one k, two ls, two ms, |
||
eighteen ns, fifteen os, two ps, one q, five rs, twenty-seven ss, |
eighteen ns, fifteen os, two ps, one q, five rs, twenty-seven ss, |
||
eighteen ts, two us, seven vs, eight ws, two xs, three ys, & one z. |
eighteen ts, two us, seven vs, eight ws, two xs, three ys, & one z. |
||
5. This sentence contains one hundred and ninety-seven letters: |
5. This sentence contains one hundred and ninety-seven letters: |
||
four a's, one b, three c's, five d's, thirty-four e's, seven f's, |
four a's, one b, three c's, five d's, thirty-four e's, seven f's, |
||
one g, six h's, twelve i's, three l's, twenty-six n's, ten o's, |
one g, six h's, twelve i's, three l's, twenty-six n's, ten o's, |
||
ten r's, twenty-nine s's, nineteen t's, six u's, seven v's, |
ten r's, twenty-nine s's, nineteen t's, six u's, seven v's, |
||
four w's, four x's, five y's, and one z. |
four w's, four x's, five y's, and one z. |
||
6. Thirteen e's, five f's, two g's, five h's, eight i's, two l's, |
6. Thirteen e's, five f's, two g's, five h's, eight i's, two l's, |
||
three n's, six o's, six r's, twenty s's, twelve t's, three u's, |
three n's, six o's, six r's, twenty s's, twelve t's, three u's, |
||
four v's, six w's, four x's, two y's. |
four v's, six w's, four x's, two y's. |
||
7. Fifteen e's, seven f's, four g's, six h's, eight i's, four n's, |
7. Fifteen e's, seven f's, four g's, six h's, eight i's, four n's, |
||
five o's, six r's, eighteen s's, eight t's, four u's, three v's, |
five o's, six r's, eighteen s's, eight t's, four u's, three v's, |
||
two w's, three x's. |
two w's, three x's. |
||
8. Sixteen e's, five f's, three g's, six h's, nine i's, five n's, |
8. Sixteen e's, five f's, three g's, six h's, nine i's, five n's, |
||
four o's, six r's, eighteen s's, eight t's, three u's, three v's, |
four o's, six r's, eighteen s's, eight t's, three u's, three v's, |
||
two w's, four z's. |
two w's, four z's. |
||
"""</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"\n "</span><span style="color: #0000FF;">,</span><span style="color: #008000;">" "</span><span style="color: #0000FF;">),</span><span style="color: #008000;">"\n"</span><span style="color: #0000FF;">),</span> |
"""</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"\n "</span><span style="color: #0000FF;">,</span><span style="color: #008000;">" "</span><span style="color: #0000FF;">),</span><span style="color: #008000;">"\n"</span><span style="color: #0000FF;">),</span> |
||
Line 317: | Line 317: | ||
Autogram? true |
Autogram? true |
||
Only the fool would take trouble to verify that his sentence... |
Only the fool would take trouble to verify that his sentence...ostrophes, seven hyphens and, last but not least, a single ! |
||
Autogram? true |
Autogram? true |
||
Line 323: | Line 323: | ||
Autogram? true |
Autogram? true |
||
This sentence contains one hundred and ninety-seven letters:... |
This sentence contains one hundred and ninety-seven letters:...six u's, seven v's, four w's, four x's, five y's, and one z. |
||
Autogram? true (197 letters) |
Autogram? true (197 letters) |
||
Thirteen e's, five f's, two g's, five h's, eight i's, two l'... |
Thirteen e's, five f's, two g's, five h's, eight i's, two l'...twelve t's, three u's, four v's, six w's, four x's, two y's. |
||
Autogram? true |
Autogram? true |
||
Fifteen e's, seven f's, four g's, six h's, eight i's, four n... |
Fifteen e's, seven f's, four g's, six h's, eight i's, four n...een s's, eight t's, four u's, three v's, two w's, three x's. |
||
Autogram? false (differences: claimed:':0 ,:0 , actual:':14 ,:13 ) |
Autogram? false (differences: claimed:':0 ,:0 , actual:':14 ,:13 ) |
||
Sixteen e's, five f's, three g's, six h's, nine i's, five n'... |
Sixteen e's, five f's, three g's, six h's, nine i's, five n'...een s's, eight t's, three u's, three v's, two w's, four z's. |
||
Autogram? false (differences: claimed:x:0 z:4 , actual:x:3 z:1 ) |
Autogram? false (differences: claimed:x:0 z:4 , actual:x:3 z:1 ) |
||
</pre> |
</pre> |