Correct sourceRange expectations

This commit is contained in:
Adam Chalmers
2025-01-17 15:12:55 -06:00
committed by Nick Cameron
parent d653b852dd
commit 5191013db2

View File

@ -370,7 +370,7 @@ describe('testing getConstraintInfo', () => {
type: 'xRelative', type: 'xRelative',
isConstrained: false, isConstrained: false,
value: '3', value: '3',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'line', stdLibFnName: 'line',
@ -379,7 +379,7 @@ describe('testing getConstraintInfo', () => {
type: 'yRelative', type: 'yRelative',
isConstrained: false, isConstrained: false,
value: '4', value: '4',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'line', stdLibFnName: 'line',
@ -393,7 +393,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLine', stdLibFnName: 'angledLine',
@ -402,7 +402,7 @@ describe('testing getConstraintInfo', () => {
type: 'length', type: 'length',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'length' }, argPosition: { type: 'objectProperty', key: 'length' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLine', stdLibFnName: 'angledLine',
@ -416,7 +416,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: false, isConstrained: false,
value: '6.14', value: '6.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'line', stdLibFnName: 'line',
@ -425,7 +425,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'line', stdLibFnName: 'line',
@ -439,7 +439,7 @@ describe('testing getConstraintInfo', () => {
type: 'horizontal', type: 'horizontal',
isConstrained: true, isConstrained: true,
value: 'xLineTo', value: 'xLineTo',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'xLineTo', stdLibFnName: 'xLineTo',
@ -448,7 +448,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: false, isConstrained: false,
value: '8', value: '8',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'singleValue' }, argPosition: { type: 'singleValue' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'xLineTo', stdLibFnName: 'xLineTo',
@ -462,7 +462,7 @@ describe('testing getConstraintInfo', () => {
type: 'vertical', type: 'vertical',
isConstrained: true, isConstrained: true,
value: 'yLineTo', value: 'yLineTo',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'yLineTo', stdLibFnName: 'yLineTo',
@ -471,7 +471,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: false, isConstrained: false,
value: '5', value: '5',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'singleValue' }, argPosition: { type: 'singleValue' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'yLineTo', stdLibFnName: 'yLineTo',
@ -485,7 +485,7 @@ describe('testing getConstraintInfo', () => {
type: 'vertical', type: 'vertical',
isConstrained: true, isConstrained: true,
value: 'yLine', value: 'yLine',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'yLine', stdLibFnName: 'yLine',
@ -494,7 +494,7 @@ describe('testing getConstraintInfo', () => {
type: 'yRelative', type: 'yRelative',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'singleValue' }, argPosition: { type: 'singleValue' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'yLine', stdLibFnName: 'yLine',
@ -508,7 +508,7 @@ describe('testing getConstraintInfo', () => {
type: 'horizontal', type: 'horizontal',
isConstrained: true, isConstrained: true,
value: 'xLine', value: 'xLine',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'xLine', stdLibFnName: 'xLine',
@ -517,7 +517,7 @@ describe('testing getConstraintInfo', () => {
type: 'xRelative', type: 'xRelative',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'singleValue' }, argPosition: { type: 'singleValue' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'xLine', stdLibFnName: 'xLine',
@ -531,7 +531,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfXLength', stdLibFnName: 'angledLineOfXLength',
@ -540,7 +540,7 @@ describe('testing getConstraintInfo', () => {
type: 'xRelative', type: 'xRelative',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'length' }, argPosition: { type: 'objectProperty', key: 'length' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfXLength', stdLibFnName: 'angledLineOfXLength',
@ -554,7 +554,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '30', value: '30',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfYLength', stdLibFnName: 'angledLineOfYLength',
@ -563,7 +563,7 @@ describe('testing getConstraintInfo', () => {
type: 'yRelative', type: 'yRelative',
isConstrained: false, isConstrained: false,
value: '3', value: '3',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'length' }, argPosition: { type: 'objectProperty', key: 'length' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfYLength', stdLibFnName: 'angledLineOfYLength',
@ -577,7 +577,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '12.14', value: '12.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToX', stdLibFnName: 'angledLineToX',
@ -586,7 +586,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: false, isConstrained: false,
value: '12', value: '12',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'to' }, argPosition: { type: 'objectProperty', key: 'to' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToX', stdLibFnName: 'angledLineToX',
@ -600,7 +600,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '30', value: '30',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToY', stdLibFnName: 'angledLineToY',
@ -609,7 +609,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: false, isConstrained: false,
value: '10.14', value: '10.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'to' }, argPosition: { type: 'objectProperty', key: 'to' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToY', stdLibFnName: 'angledLineToY',
@ -623,7 +623,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineThatIntersects', stdLibFnName: 'angledLineThatIntersects',
@ -632,7 +632,7 @@ describe('testing getConstraintInfo', () => {
type: 'intersectionOffset', type: 'intersectionOffset',
isConstrained: false, isConstrained: false,
value: '0', value: '0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'offset' }, argPosition: { type: 'objectProperty', key: 'offset' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineThatIntersects', stdLibFnName: 'angledLineThatIntersects',
@ -641,7 +641,7 @@ describe('testing getConstraintInfo', () => {
type: 'intersectionTag', type: 'intersectionTag',
isConstrained: false, isConstrained: false,
value: 'a', value: 'a',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { argPosition: {
key: 'intersectTag', key: 'intersectTag',
type: 'objectProperty', type: 'objectProperty',
@ -658,7 +658,7 @@ describe('testing getConstraintInfo', () => {
type: 'tangentialWithPrevious', type: 'tangentialWithPrevious',
isConstrained: true, isConstrained: true,
value: 'tangentialArcTo', value: 'tangentialArcTo',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'tangentialArcTo', stdLibFnName: 'tangentialArcTo',
@ -667,7 +667,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'tangentialArcTo', stdLibFnName: 'tangentialArcTo',
@ -676,7 +676,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: false, isConstrained: false,
value: '13.14', value: '13.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'tangentialArcTo', stdLibFnName: 'tangentialArcTo',
@ -732,7 +732,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLine', stdLibFnName: 'angledLine',
@ -741,7 +741,7 @@ describe('testing getConstraintInfo', () => {
type: 'length', type: 'length',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLine', stdLibFnName: 'angledLine',
@ -755,7 +755,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfXLength', stdLibFnName: 'angledLineOfXLength',
@ -764,7 +764,7 @@ describe('testing getConstraintInfo', () => {
type: 'xRelative', type: 'xRelative',
isConstrained: false, isConstrained: false,
value: '3.14', value: '3.14',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfXLength', stdLibFnName: 'angledLineOfXLength',
@ -778,7 +778,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '30', value: '30',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfYLength', stdLibFnName: 'angledLineOfYLength',
@ -787,7 +787,7 @@ describe('testing getConstraintInfo', () => {
type: 'yRelative', type: 'yRelative',
isConstrained: false, isConstrained: false,
value: '3', value: '3',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfYLength', stdLibFnName: 'angledLineOfYLength',
@ -801,7 +801,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '12', value: '12',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToX', stdLibFnName: 'angledLineToX',
@ -810,7 +810,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: false, isConstrained: false,
value: '12', value: '12',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToX', stdLibFnName: 'angledLineToX',
@ -824,7 +824,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: false, isConstrained: false,
value: '30', value: '30',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToY', stdLibFnName: 'angledLineToY',
@ -833,7 +833,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: false, isConstrained: false,
value: '10', value: '10',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToY', stdLibFnName: 'angledLineToY',
@ -890,7 +890,7 @@ describe('testing getConstraintInfo', () => {
type: 'xRelative', type: 'xRelative',
isConstrained: true, isConstrained: true,
value: '3 + 0', value: '3 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'line', stdLibFnName: 'line',
@ -899,7 +899,7 @@ describe('testing getConstraintInfo', () => {
type: 'yRelative', type: 'yRelative',
isConstrained: true, isConstrained: true,
value: '4 + 0', value: '4 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'line', stdLibFnName: 'line',
@ -913,7 +913,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLine', stdLibFnName: 'angledLine',
@ -922,7 +922,7 @@ describe('testing getConstraintInfo', () => {
type: 'length', type: 'length',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'length' }, argPosition: { type: 'objectProperty', key: 'length' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLine', stdLibFnName: 'angledLine',
@ -936,7 +936,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: true, isConstrained: true,
value: '6.14 + 0', value: '6.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'line', stdLibFnName: 'line',
@ -945,7 +945,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'line', stdLibFnName: 'line',
@ -959,7 +959,7 @@ describe('testing getConstraintInfo', () => {
type: 'horizontal', type: 'horizontal',
isConstrained: true, isConstrained: true,
value: 'xLineTo', value: 'xLineTo',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'xLineTo', stdLibFnName: 'xLineTo',
@ -968,7 +968,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: true, isConstrained: true,
value: '8 + 0', value: '8 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'singleValue' }, argPosition: { type: 'singleValue' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'xLineTo', stdLibFnName: 'xLineTo',
@ -982,7 +982,7 @@ describe('testing getConstraintInfo', () => {
type: 'vertical', type: 'vertical',
isConstrained: true, isConstrained: true,
value: 'yLineTo', value: 'yLineTo',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'yLineTo', stdLibFnName: 'yLineTo',
@ -991,7 +991,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: true, isConstrained: true,
value: '5 + 0', value: '5 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'singleValue' }, argPosition: { type: 'singleValue' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'yLineTo', stdLibFnName: 'yLineTo',
@ -1005,7 +1005,7 @@ describe('testing getConstraintInfo', () => {
type: 'vertical', type: 'vertical',
isConstrained: true, isConstrained: true,
value: 'yLine', value: 'yLine',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'yLine', stdLibFnName: 'yLine',
@ -1014,7 +1014,7 @@ describe('testing getConstraintInfo', () => {
type: 'yRelative', type: 'yRelative',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'singleValue' }, argPosition: { type: 'singleValue' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'yLine', stdLibFnName: 'yLine',
@ -1028,7 +1028,7 @@ describe('testing getConstraintInfo', () => {
type: 'horizontal', type: 'horizontal',
isConstrained: true, isConstrained: true,
value: 'xLine', value: 'xLine',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'xLine', stdLibFnName: 'xLine',
@ -1037,7 +1037,7 @@ describe('testing getConstraintInfo', () => {
type: 'xRelative', type: 'xRelative',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'singleValue' }, argPosition: { type: 'singleValue' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'xLine', stdLibFnName: 'xLine',
@ -1051,7 +1051,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfXLength', stdLibFnName: 'angledLineOfXLength',
@ -1060,7 +1060,7 @@ describe('testing getConstraintInfo', () => {
type: 'xRelative', type: 'xRelative',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'length' }, argPosition: { type: 'objectProperty', key: 'length' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfXLength', stdLibFnName: 'angledLineOfXLength',
@ -1074,7 +1074,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: true, isConstrained: true,
value: '30 + 0', value: '30 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfYLength', stdLibFnName: 'angledLineOfYLength',
@ -1083,7 +1083,7 @@ describe('testing getConstraintInfo', () => {
type: 'yRelative', type: 'yRelative',
isConstrained: true, isConstrained: true,
value: '3 + 0', value: '3 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'length' }, argPosition: { type: 'objectProperty', key: 'length' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineOfYLength', stdLibFnName: 'angledLineOfYLength',
@ -1097,7 +1097,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: true, isConstrained: true,
value: '12.14 + 0', value: '12.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToX', stdLibFnName: 'angledLineToX',
@ -1106,7 +1106,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: true, isConstrained: true,
value: '12 + 0', value: '12 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'to' }, argPosition: { type: 'objectProperty', key: 'to' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToX', stdLibFnName: 'angledLineToX',
@ -1120,7 +1120,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: true, isConstrained: true,
value: '30 + 0', value: '30 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToY', stdLibFnName: 'angledLineToY',
@ -1129,7 +1129,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: true, isConstrained: true,
value: '10.14 + 0', value: '10.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'to' }, argPosition: { type: 'objectProperty', key: 'to' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineToY', stdLibFnName: 'angledLineToY',
@ -1143,7 +1143,7 @@ describe('testing getConstraintInfo', () => {
type: 'angle', type: 'angle',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'angle' }, argPosition: { type: 'objectProperty', key: 'angle' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineThatIntersects', stdLibFnName: 'angledLineThatIntersects',
@ -1152,7 +1152,7 @@ describe('testing getConstraintInfo', () => {
type: 'intersectionOffset', type: 'intersectionOffset',
isConstrained: true, isConstrained: true,
value: '0 + 0', value: '0 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'objectProperty', key: 'offset' }, argPosition: { type: 'objectProperty', key: 'offset' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineThatIntersects', stdLibFnName: 'angledLineThatIntersects',
@ -1161,7 +1161,7 @@ describe('testing getConstraintInfo', () => {
type: 'intersectionTag', type: 'intersectionTag',
isConstrained: false, isConstrained: false,
value: 'a', value: 'a',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { key: 'intersectTag', type: 'objectProperty' }, argPosition: { key: 'intersectTag', type: 'objectProperty' },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'angledLineThatIntersects', stdLibFnName: 'angledLineThatIntersects',
@ -1175,7 +1175,7 @@ describe('testing getConstraintInfo', () => {
type: 'tangentialWithPrevious', type: 'tangentialWithPrevious',
isConstrained: true, isConstrained: true,
value: 'tangentialArcTo', value: 'tangentialArcTo',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: undefined, argPosition: undefined,
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'tangentialArcTo', stdLibFnName: 'tangentialArcTo',
@ -1184,7 +1184,7 @@ describe('testing getConstraintInfo', () => {
type: 'xAbsolute', type: 'xAbsolute',
isConstrained: true, isConstrained: true,
value: '3.14 + 0', value: '3.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 0 }, argPosition: { type: 'arrayItem', index: 0 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'tangentialArcTo', stdLibFnName: 'tangentialArcTo',
@ -1193,7 +1193,7 @@ describe('testing getConstraintInfo', () => {
type: 'yAbsolute', type: 'yAbsolute',
isConstrained: true, isConstrained: true,
value: '13.14 + 0', value: '13.14 + 0',
sourceRange: [expect.any(Number), expect.any(Number), true], sourceRange: [expect.any(Number), expect.any(Number), 0],
argPosition: { type: 'arrayItem', index: 1 }, argPosition: { type: 'arrayItem', index: 1 },
pathToNode: expect.any(Array), pathToNode: expect.any(Array),
stdLibFnName: 'tangentialArcTo', stdLibFnName: 'tangentialArcTo',