Adjust test expectations because they're expecting inaccuracies which have been fixed
This commit is contained in:
@ -272,21 +272,19 @@ const mySk1 = startSketchAt([0, 0])
|
|||||||
`
|
`
|
||||||
const { ast } = code2ast(code)
|
const { ast } = code2ast(code)
|
||||||
const recasted = recast(ast)
|
const recasted = recast(ast)
|
||||||
expect(recasted).toBe(`// comment at start
|
expect(recasted).toBe(`/* comment at start */
|
||||||
const mySk1 = startSketchAt([0, 0])
|
const mySk1 = startSketchAt([0, 0])
|
||||||
|> lineTo([1, 1], %)
|
|> lineTo([1, 1], %)
|
||||||
// comment here
|
// comment here
|
||||||
|> lineTo({ to: [0, 1], tag: 'myTag' }, %)
|
|> lineTo({ to: [0, 1], tag: 'myTag' }, %)
|
||||||
|> lineTo([1, 1], %)
|
|> lineTo([1, 1], %) /* and
|
||||||
/* and
|
here */
|
||||||
here
|
// a comment between pipe expression statements
|
||||||
|
|
||||||
a comment between pipe expression statements */
|
|
||||||
|> rx(90, %)
|
|> rx(90, %)
|
||||||
// and another with just white space between others below
|
// and another with just white space between others below
|
||||||
|> ry(45, %)
|
|> ry(45, %)
|
||||||
|> rx(45, %)
|
|> rx(45, %)
|
||||||
// one more for good measure
|
/* one more for good measure */
|
||||||
`)
|
`)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -100,7 +100,7 @@ describe('testing changeSketchArguments', () => {
|
|||||||
|> startProfileAt([0, 0], %)
|
|> startProfileAt([0, 0], %)
|
||||||
|> ${line}
|
|> ${line}
|
||||||
|> lineTo([0.46, -5.82], %)
|
|> lineTo([0.46, -5.82], %)
|
||||||
// |> rx(45, %)
|
// |> rx(45, %)
|
||||||
show(mySketch001)
|
show(mySketch001)
|
||||||
`
|
`
|
||||||
const code = genCode(lineToChange)
|
const code = genCode(lineToChange)
|
||||||
|
|||||||
Reference in New Issue
Block a user