Skip to content

Commit

Permalink
fix test_data/mandelbrot: complex is now num.complex
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellilltokiwa committed May 16, 2023
1 parent 5a14359 commit a191989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test/flang/lsp/server/feature/InlayHintTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public void InlayHintsComposedArg()
var inlayHints = InlayHints
.getInlayHints(Params());

// 15 actuals, 2 result types
assertEquals(15 + 2, inlayHints.size());
// 20 actuals, 2 result types
assertEquals(20 + 2, inlayHints.size());

InlayHint maxEscapeIter = inlayHints.stream().filter(x -> x.getPosition().getLine() == 16).findFirst().get();
assertEquals("yStart:", maxEscapeIter.getLabel().getLeft());
Expand Down
4 changes: 2 additions & 2 deletions test_data/mandelbrot.fz
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mandelbrotexample is
isInMandelbrotSet(c complex f64, maxEscapeIterations i32, z complex f64) bool is
isInMandelbrotSet(c num.complex f64, maxEscapeIterations i32, z num.complex f64) bool is
maxEscapeIterations = 0 || z.abs² <= 4 && isInMandelbrotSet c maxEscapeIterations-1 z*z+c

steps(start, step f64, numPixels i32) =>
Expand All @@ -8,7 +8,7 @@ mandelbrotexample is
mandelbrotImage(yStart, yStep, xStart, xStep f64, height, width i32) =>
for y in steps yStart yStep height do
for x in steps xStart xStep width do
if isInMandelbrotSet (complex x y) 50 (complex 0.0 0.0)
if isInMandelbrotSet (num.complex x y) 50 (num.complex 0.0 0.0)
yak "⬤"
else
yak " "
Expand Down

0 comments on commit a191989

Please sign in to comment.