---
url: /dyad/dev/stdlib/MultibodyComponents/tests/tests.TestCableNoEndJoints.md
description: >-
  Dyad tests.TestCableNoEndJoints docs.  Simple test: World →
  Cable(end_joints=false, n=2) → Body Tests n-1 joint topology (rigid attachment
  at both ends).
---

# `tests.TestCableNoEndJoints` {#tests.TestCableNoEndJoints}

Simple test: World → Cable(end_joints=false, n=2) → Body Tests n-1 joint topology (rigid attachment at both ends).

## Usage {#Usage}

`MultibodyComponents.tests.TestCableNoEndJoints()`

## 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=false, n=2) → Body
Tests n-1 joint topology (rigid attachment at both ends).
"""
test component TestCableNoEndJoints
  world = MultibodyComponents.World()
  cable = MultibodyComponents.Cable(n = number_of_links, end_joints = false, 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=false, n=2) → Body
Tests n-1 joint topology (rigid attachment at both ends).
"""
test component TestCableNoEndJoints
  world = MultibodyComponents.World()
  cable = MultibodyComponents.Cable(n = number_of_links, end_joints = false, 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.TestCableNoEndJoints.md)

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

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