---
url: /dyad/dev/stdlib/MultibodyComponents/tests/tests.TestCableEndJoints.md
description: >-
  Dyad tests.TestCableEndJoints docs.  Simple test: World →
  Cable(end_joints=true, n=2) → Body Tests n+1 joint topology.
---

# `tests.TestCableEndJoints` {#tests.TestCableEndJoints}

Simple test: World → Cable(end_joints=true, n=2) → Body Tests n+1 joint topology.

## Usage {#Usage}

`MultibodyComponents.tests.TestCableEndJoints()`

## Parameters: {#Parameters:}

|              Name | Description | Units | Default value |
| -----------------:| -----------:| -----:| -------------:|
| `number_of_links` |             |     – |             2 |
|        `use_quat` |             |     – |          true |

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Simple test: World → Cable(end_joints=true, n=2) → Body
Tests n+1 joint topology.
"""
test component TestCableEndJoints
  world = MultibodyComponents.World()
  cable = MultibodyComponents.Cable(n = number_of_links, end_joints = true, l = 1, m = 1, radius = 0.01, orientation_state = use_quat ? OrientationState.Quaternion() : OrientationState.Euler())
  load = MultibodyComponents.Body(m = 0.5)
  structural parameter number_of_links::Integer = 2
  structural parameter use_quat::Boolean = true
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, load.frame_a)
end
```

```dyad
"""
Simple test: World → Cable(end_joints=true, n=2) → Body
Tests n+1 joint topology.
"""
test component TestCableEndJoints
  world = MultibodyComponents.World()
  cable = MultibodyComponents.Cable(n = number_of_links, end_joints = true, l = 1, m = 1, radius = 0.01, orientation_state = use_quat ? OrientationState.Quaternion() : OrientationState.Euler())
  load = MultibodyComponents.Body(m = 0.5)
  structural parameter number_of_links::Integer = 2
  structural parameter use_quat::Boolean = true
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, load.frame_a)
metadata {}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Body`](tests.TestCableEndJoints.md)

  * [`Cable`](tests.TestCableEndJoints.md)

  * [`World`](tests.TestCableEndJoints.md)
