---
title: "Discussion on \"How to Make Calculation Tests Simpler and More Expressive with These New Refactorings\" | Hashnode"
description: "Discussion on \"How to Make Calculation Tests Simpler and More Expressive with These New Refactorings\". It is a good idea to make tests as descriptive as possible – to achieve Tests as Documentation. Including the calculations in the test is a big part of this, and avoids the Hard Coded Test Data smell.\nFor example, if a test looks like this, it is har..."
url: "https://hashnode.com/posts/how-to-test-complicated-calculations-new-refactoring/66bb9264fce17a7d99885305"
---

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

Discussion

# [How to Make Calculation Tests Simpler and More Expressive with These New Refactorings](https://freecodecamp.org/news/how-to-test-complicated-calculations-new-refactoring?utm_source=hashnode&utm_medium=feed)

It is a good idea to make tests as descriptive as possible – to achieve Tests as Documentation. Including the calculations in the test is a big part of this, and avoids the Hard Coded Test Data smell. For example, if a test looks like this, it is har...

Feb 3, 2021 · 7 min read · freecodecamp.org  
Read the article

-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#testing](https://hashnode.com/tag/testing)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)

## Written by

[Cedd Burge](https://hashnode.com/@ceddlyburge)

@ceddlyburge

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

Software developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
