We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edd2f85 commit 811a6bbCopy full SHA for 811a6bb
test/clock.jl
@@ -558,16 +558,21 @@ end
558
559
@test d2 == 1:6 # y
560
561
-X = [0, 0] # xy
562
-ti = 0
563
-for ti in 0:10
564
- i = ti + 1
565
- x, y = X
566
- if ti % 2 == 0
567
- y = y + 1
+# Manual implementation of the dynamics
+function manualtest()
+ x, y = 0, 0
+ X = [[x, y]] # xy
+ ti = 0
+ for ti in 0:10
+ i = ti + 1
568
+ if ti % 2 == 0
569
+ y = y + 1
570
+ end
571
+ x = x + y
572
+
573
+ @test d1[i] == x
574
+ push!(X, [x, y])
575
end
- x = x + y
-
- @test d1[i] == x
- X = [x, y]
576
+ X
577
578
+X = manualtest()
0 commit comments