Talk:Sparkline in unicode: Difference between revisions

m
→‎Most of these are buggy: sparktest can be an alias
(→‎Most of these are buggy: Python addressed.)
m (→‎Most of these are buggy: sparktest can be an alias)
Line 26:
 
Sample usage (in bash, and assuming program accepts space-separated data on standard input):
<pre>
 
alias sparktest=$'perl -CS -Mutf8 -nle \'@x=grep $i^=1, map length, /(([▁-█])\\2*)/g and print"@x"\''
<code>echo {1..8000} | sparkline | sparktest.pl</code>
 
Expected# expected output from the sample is <code>1000 1000 1000 1000 1000 1000 1000 1000</code>.
</pre>
 
;Not Buggy
 
* [[Sparkline_in_unicode#Go|Go]]. Tested up to <code>echo {1..12345} | go run sl.go | sparktest.pl</code>
 
;Buggy