import { test } from '@jest/globals'; test.todo('Ignore this test for now'); // import type { CpNode } from '../../src/cp-node/cp-node.js'; // import { expect, test } from '@jest/globals'; // import { getAllOnLoop } from '../../src/cp-node/fs/get-all-on-loop.js'; // import { randomWalk } from './random-walk.js'; // import { getMats1 } from '../get-mats1.js'; // test('Check MAT objects equal (after clone)', function() { // const mats1 = getMats1(); // Calculates MAT from shape // // too hard for Jest due to circular references // // expect(mats_obj1).toEqual(mats_calc1); // // Fast path: check root array structure and length // expect(Array.isArray(mats1_)).toBe(true); // expect(Array.isArray(mats1)).toBe(true); // expect(mats1_.length).toBe(mats1.length); // // Verify key properties of the MAT objects instead of deep comparison // const mats1_0_ = mats1_[0]; // const mats1_0 = mats1[0]; // // Check critical structure exists // expect(mats1_0_).toHaveProperty('cpNode'); // expect(mats1_0).toHaveProperty('cpNode'); // // Verify circular reference integrity // if (mats1_0_.cpNode && mats1_0_.cpNode.nextOnCircle) { // expect(mats1_0_.cpNode.nextOnCircle).toBeDefined(); // } // getAllOnLoop(mats1_0_.cpNode).length; //? // // Perform a random walk on the calculated MAT to ensure it behaves as expected // let testCpNode = mats1_0.cpNode; // let testCpNode_ = mats1_0_.cpNode; // const N = 10; // let reachCpNodes = new Set(); // for (let i=0; i