Files
bitburner-src/test/jest
David Walker d4cb50fbf1 BUGFIX: Fix calculateExp so that it won't return a too small result (#2274)
* BUGFIX: Fix calculateExp so that it won't return a too small result

Due to floating point rounding issues, when applying the inverse
operation and flooring, roughly half the time we would get the next
lower skill level. This quickly finds a slightly higher result that
gives the correct inverse.

* clearer test layout
2025-07-31 12:54:31 -07:00
..
2023-05-28 05:43:09 -04:00

Unit Tests

This directory contains unit tests for Bitburner.

Unit tests use jest.

Running

Run tests with: npm run test

To watch for changes: npm run test:watch