From c3a61f368e4bc90d04881ab7d25acc76ae34a796 Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Wed, 11 Oct 2023 13:59:14 -0500 Subject: [PATCH] Adjust test expectations because they're expecting inaccuracies which have been fixed --- src/lang/recast.test.ts | 12 +++++------- src/lang/std/sketch.test.ts | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/lang/recast.test.ts b/src/lang/recast.test.ts index 401dc1565..faf1a19ff 100644 --- a/src/lang/recast.test.ts +++ b/src/lang/recast.test.ts @@ -272,21 +272,19 @@ const mySk1 = startSketchAt([0, 0]) ` const { ast } = code2ast(code) const recasted = recast(ast) - expect(recasted).toBe(`// comment at start + expect(recasted).toBe(`/* comment at start */ const mySk1 = startSketchAt([0, 0]) |> lineTo([1, 1], %) // comment here |> lineTo({ to: [0, 1], tag: 'myTag' }, %) - |> lineTo([1, 1], %) - /* and - here - -a comment between pipe expression statements */ + |> lineTo([1, 1], %) /* and + here */ + // a comment between pipe expression statements |> rx(90, %) // and another with just white space between others below |> ry(45, %) |> rx(45, %) -// one more for good measure + /* one more for good measure */ `) }) }) diff --git a/src/lang/std/sketch.test.ts b/src/lang/std/sketch.test.ts index 7724a2d98..66469aa21 100644 --- a/src/lang/std/sketch.test.ts +++ b/src/lang/std/sketch.test.ts @@ -100,7 +100,7 @@ describe('testing changeSketchArguments', () => { |> startProfileAt([0, 0], %) |> ${line} |> lineTo([0.46, -5.82], %) -// |> rx(45, %) + // |> rx(45, %) show(mySketch001) ` const code = genCode(lineToChange)