make run the default action of a test in tester
This commit is contained in:
parent
610283b9b0
commit
031bfdec6f
50 changed files with 313 additions and 46 deletions
|
|
@ -1,4 +1,36 @@
|
|||
# bug #3799
|
||||
discard """
|
||||
output: '''
|
||||
00000000000000000000000000000000000000000
|
||||
00000000000001111111111111110000000000000
|
||||
00000000001111111111111111111110000000000
|
||||
00000000111111111111111111111111100000000
|
||||
00000011111222222221111111111111111000000
|
||||
00000111122222222222221111111111111100000
|
||||
00001112222333333459432111111111111110000
|
||||
00011122355544344463533221111111111111000
|
||||
00111124676667556896443322211111111111100
|
||||
00111126545561919686543322221111111111100
|
||||
01111123333346967807554322222211111111110
|
||||
01111122233334455582015332222221111111110
|
||||
01111122222333344567275432222222111111110
|
||||
01111112222222334456075443222222211111110
|
||||
01111111222222233459965444332222221111110
|
||||
01111111122222223457486554433322222111110
|
||||
01111111112222222367899655543333322111110
|
||||
01111111111122222344573948465444332111110
|
||||
00111111111112222334467987727667762111100
|
||||
00111111111111122233474655557836432111100
|
||||
00011111111111112233 454433334 4321111000
|
||||
00001111111111111122354333322222211110000
|
||||
00000111111111111111222222222222111100000
|
||||
00000001111111111111111122222111110000000
|
||||
00000000111111111111111111111111100000000
|
||||
00000000000111111111111111111100000000000
|
||||
00000000000000111111111111100000000000000
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
import macros
|
||||
|
||||
|
|
@ -37,9 +69,9 @@ iterator stepIt[T](start, step: T, iterations: int): T =
|
|||
|
||||
|
||||
let c = (0.36237, 0.32)
|
||||
for y in stepIt(2.0, -0.0375, 107):
|
||||
for y in stepIt(2.0, -0.0375 * 4, 107 div 4):
|
||||
var row = ""
|
||||
for x in stepIt(-2.0, 0.025, 160):
|
||||
for x in stepIt(-2.0, 0.025 * 4, 160 div 4):
|
||||
#let n = julia((x, y), c, 4.0, nmax) ### this works
|
||||
let n = dendriteFractal((x, y), 4.0, nmax)
|
||||
if n < nmax:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue