{"size": 1546, "ext": "js", "max_stars_repo_path": "src/tests/Linkage.test.js", "max_stars_repo_name": "modelsplaid/tzqhexapodjs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/tests/Linkage.test.js", "max_issues_repo_name": "modelsplaid/tzqhexapodjs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/tests/Linkage.test.js", "max_forks_repo_name": "modelsplaid/tzqhexapodjs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.3137254902, "max_line_length": 76, "alphanum_fraction": 0.7276843467}
import CASE1 from "./cases/Linkage/case1.js"
import CASE2 from "./cases/Linkage/case2.js"
import Linkage from "../hexapod/Linkage.js"
import { POSITION_NAME_TO_ID_MAP } from "../hexapod/constants.js"
import { expectToBeEqualPoints } from "./helpers.js"
const CASES = [CASE1, CASE2]

const { params, result } = CASE1


const linkage = new Linkage(
        params.dimensions,
        params.position,
        params.bodyContactPoint,
        params.pose
    )

const { allPointsList } = linkage
console.log(allPointsList)
console.log( params.position)

console.log("1111111111111111111111")
console.log( params.dimensions)

/*
test.each(CASES)("Should Initialize Linkage: %p", thisCase => {
    const { params, result } = thisCase
    const linkage = new Linkage(
        params.dimensions,
        params.position,
        params.bodyContactPoint,
        params.pose
    )

    const { allPointsList } = linkage

    expect(linkage.id).toBe(POSITION_NAME_TO_ID_MAP[params.position])
    expect(linkage.name).toBe(params.position + "Leg")

    expect(linkage.bodyContactPoint).toBe(allPointsList[0])
    expect(linkage.coxiaPoint).toBe(allPointsList[1])
    expect(linkage.femurPoint).toBe(allPointsList[2])
    expect(linkage.footTipPoint).toBe(allPointsList[3])

    expectToBeEqualPoints(linkage.bodyContactPoint, result.bodyContactPoint)
    expectToBeEqualPoints(linkage.coxiaPoint, result.coxiaPoint)
    expectToBeEqualPoints(linkage.femurPoint, result.femurPoint)
    expectToBeEqualPoints(linkage.footTipPoint, result.footTipPoint)
})
*/
