diff --git a/cypress/e2e/DoenetML/tagSpecific/vector.cy.js b/cypress/e2e/DoenetML/tagSpecific/vector.cy.js
index a5639c53e8..6f03da0874 100644
--- a/cypress/e2e/DoenetML/tagSpecific/vector.cy.js
+++ b/cypress/e2e/DoenetML/tagSpecific/vector.cy.js
@@ -12423,41 +12423,41 @@ describe('Vector Tag Tests', function () {
expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.headDraggable).eq(true);
expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tailDraggable).eq(true);
- expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([1,1]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([1,2]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([1,3]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([1,4]);
-
- expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([1,6]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([1,8]);
-
- expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([1,1]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([1,2]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([1,3]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([1,4]);
-
- expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([1,6]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([1,8]);
+ expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([1, 1]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([1, 2]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([1, 3]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([1, 4]);
+
+ expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([1, 6]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([1, 8]);
+
+ expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([1, 1]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([1, 2]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([1, 3]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([1, 4]);
+
+ expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([1, 6]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([1, 8]);
})
@@ -12546,41 +12546,41 @@ describe('Vector Tag Tests', function () {
cy.window().then(async (win) => {
let stateVariables = await win.returnAllStateVariables1();
- expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([2,1]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([1,2]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([2,3]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([1,4]);
-
- expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([2,6]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([2,8]);
-
- expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([2,1]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([1,2]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([2,3]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([1,4]);
-
- expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([2,6]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([2,8]);
+ expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([2, 1]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([1, 2]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([2, 3]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([1, 4]);
+
+ expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([2, 6]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([2, 8]);
+
+ expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([2, 1]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([1, 2]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([2, 3]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([1, 4]);
+
+ expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([2, 6]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([2, 8]);
})
cy.window().then(async (win) => {
@@ -12668,41 +12668,41 @@ describe('Vector Tag Tests', function () {
cy.window().then(async (win) => {
let stateVariables = await win.returnAllStateVariables1();
- expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-1,-1]);
- expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([2,1]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-1,-2]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([1,2]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([2,3]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([1,4]);
+ expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-1, -1]);
+ expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([2, 1]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-1, -2]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([1, 2]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([2, 3]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([1, 4]);
- expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([2,6]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-1,-7]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-1,-8]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([2,8]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([2, 6]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-1, -7]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-1, -8]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([2, 8]);
- expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-1,-1]);
- expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([2,1]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-1,-2]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([1,2]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([2,3]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([1,4]);
+ expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-1, -1]);
+ expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([2, 1]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-1, -2]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([1, 2]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([2, 3]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([1, 4]);
- expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([2,6]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-1,-7]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-1,-8]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([2,8]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([2, 6]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-1, -7]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-1, -8]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([2, 8]);
})
@@ -12802,41 +12802,41 @@ describe('Vector Tag Tests', function () {
cy.window().then(async (win) => {
let stateVariables = await win.returnAllStateVariables1();
- expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-2,-1]);
- expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([3,1]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-2,-2]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([3,2]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([-2,-3]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([3,3]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([-2,-4]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([3,4]);
-
- expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([2,6]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-1,-7]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-1,-8]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([2,8]);
-
- expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-2,-1]);
- expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([3,1]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-2,-2]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([3,2]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([-2,-3]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([3,3]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([-2,-4]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([3,4]);
-
- expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([2,6]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-1,-7]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-1,-8]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([2,8]);
+ expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-2, -1]);
+ expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([3, 1]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-2, -2]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([3, 2]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([-2, -3]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([3, 3]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([-2, -4]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([3, 4]);
+
+ expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([2, 6]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-1, -7]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-1, -8]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([2, 8]);
+
+ expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-2, -1]);
+ expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([3, 1]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-2, -2]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([3, 2]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([-2, -3]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([3, 3]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([-2, -4]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([3, 4]);
+
+ expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([2, 6]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-1, -7]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-1, -8]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([2, 8]);
})
@@ -12929,41 +12929,41 @@ describe('Vector Tag Tests', function () {
cy.window().then(async (win) => {
let stateVariables = await win.returnAllStateVariables1();
- expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-2,-1]);
- expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([4,1]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-2,-2]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([3,2]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([-2,-3]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([4,3]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([-2,-4]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([3,4]);
-
- expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([4,6]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-1,-7]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-1,-8]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([4,8]);
-
- expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-2,-1]);
- expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([4,1]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-2,-2]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([3,2]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([-2,-3]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([4,3]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([-2,-4]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([3,4]);
-
- expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([4,6]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-1,-7]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-1,-8]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([4,8]);
+ expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-2, -1]);
+ expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([4, 1]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-2, -2]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([3, 2]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([-2, -3]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([4, 3]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([-2, -4]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([3, 4]);
+
+ expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([4, 6]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-1, -7]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-1, -8]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([4, 8]);
+
+ expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-2, -1]);
+ expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([4, 1]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-2, -2]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([3, 2]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([-2, -3]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([4, 3]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([-2, -4]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([3, 4]);
+
+ expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([4, 6]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-1, -7]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-1, -8]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([4, 8]);
})
@@ -13055,41 +13055,41 @@ describe('Vector Tag Tests', function () {
cy.window().then(async (win) => {
let stateVariables = await win.returnAllStateVariables1();
- expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-3,-1]);
- expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([4,1]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-3,-2]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([3,2]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([-2,-3]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([4,3]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([-2,-4]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([3,4]);
+ expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-3, -1]);
+ expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([4, 1]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-3, -2]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([3, 2]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([-2, -3]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([4, 3]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([-2, -4]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([3, 4]);
- expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([4,6]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-3,-7]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-3,-8]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([4,8]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([4, 6]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-3, -7]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-3, -8]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([4, 8]);
- expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-3,-1]);
- expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([4,1]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-3,-2]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([3,2]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([-2,-3]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([4,3]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([-2,-4]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([3,4]);
+ expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-3, -1]);
+ expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([4, 1]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-3, -2]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([3, 2]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([-2, -3]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([4, 3]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([-2, -4]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([3, 4]);
- expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([4,6]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-3,-7]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-3,-8]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([4,8]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([4, 6]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-3, -7]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-3, -8]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([4, 8]);
})
@@ -13191,41 +13191,41 @@ describe('Vector Tag Tests', function () {
cy.window().then(async (win) => {
let stateVariables = await win.returnAllStateVariables1();
- expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-4,-1]);
- expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([5,1]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-4,-2]);
- expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([5,2]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([-4,-3]);
- expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([5,3]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([-4,-4]);
- expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([5,4]);
-
- expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([4,6]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-3,-7]);
- expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-3,-8]);
- expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([4,8]);
-
- expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-4,-1]);
- expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([5,1]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-4,-2]);
- expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([5,2]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([-4,-3]);
- expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([5,3]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([-4,-4]);
- expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([5,4]);
-
- expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1,5]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0,0]);
- expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([4,6]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-3,-7]);
- expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1,7]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-3,-8]);
- expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([4,8]);
+ expect(stateVariables["/g0/vdrag"].stateValues.tail).eqls([-4, -1]);
+ expect(stateVariables["/g0/vdrag"].stateValues.head).eqls([5, 1]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.tail).eqls([-4, -2]);
+ expect(stateVariables["/g0/vnoheaddrag"].stateValues.head).eqls([5, 2]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.tail).eqls([-4, -3]);
+ expect(stateVariables["/g0/vnotaildrag"].stateValues.head).eqls([5, 3]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.tail).eqls([-4, -4]);
+ expect(stateVariables["/g0/vnoheadtaildrag"].stateValues.head).eqls([5, 4]);
+
+ expect(stateVariables["/g0/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g0/vnodragheaddrag"].stateValues.head).eqls([4, 6]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.tail).eqls([-3, -7]);
+ expect(stateVariables["/g0/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.tail).eqls([-3, -8]);
+ expect(stateVariables["/g0/vnodragheadtaildrag"].stateValues.head).eqls([4, 8]);
+
+ expect(stateVariables["/g1/vdrag"].stateValues.tail).eqls([-4, -1]);
+ expect(stateVariables["/g1/vdrag"].stateValues.head).eqls([5, 1]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.tail).eqls([-4, -2]);
+ expect(stateVariables["/g1/vnoheaddrag"].stateValues.head).eqls([5, 2]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.tail).eqls([-4, -3]);
+ expect(stateVariables["/g1/vnotaildrag"].stateValues.head).eqls([5, 3]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.tail).eqls([-4, -4]);
+ expect(stateVariables["/g1/vnoheadtaildrag"].stateValues.head).eqls([5, 4]);
+
+ expect(stateVariables["/g1/vnodrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodrag"].stateValues.head).eqls([1, 5]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.tail).eqls([0, 0]);
+ expect(stateVariables["/g1/vnodragheaddrag"].stateValues.head).eqls([4, 6]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.tail).eqls([-3, -7]);
+ expect(stateVariables["/g1/vnodragtaildrag"].stateValues.head).eqls([1, 7]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.tail).eqls([-3, -8]);
+ expect(stateVariables["/g1/vnodragheadtaildrag"].stateValues.head).eqls([4, 8]);
})
@@ -13233,5 +13233,114 @@ describe('Vector Tag Tests', function () {
})
+ it('vector magnitude', () => {
+ cy.window().then(async (win) => {
+ win.postMessage({
+ doenetML: `
+