---
title: "Discussion on \"The Test Asserted Array Order the API Never Promised\" | Hashnode"
description: "Discussion on \"The Test Asserted Array Order the API Never Promised\". Why tests should not assert an order the API never guarantees and how to compare collections as sets."
url: "https://hashnode.com/posts/test-asserted-array-order-not-guaranteed/6aed8daea12d9518ae6a4c19"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Test Asserted Array Order the API Never Promised](https://blogs.powerduck.com/test-asserted-array-order-not-guaranteed?utm_source=hashnode&utm_medium=feed)

Why tests should not assert an order the API never guarantees and how to compare collections as sets.

Nov 6 · 5 min read · blogs.powerduck.com  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#api](https://hashnode.com/tag/api)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
