[TS] Build your own Interpreter: Scanning: Number literals #kj0

When printing a tokens literal like this, tests will sometimes pass:
Number.isInteger(parseFloat(literal)) ? parseInt(literal) + '.0' : literal

However, tests should always fail because this way of formatting the literal will result in 46.50 being returned as 46.50and not the required 46.5

Tests therefore shoud always check the solution against numbers with trailing zeros.

Hey @dwrth, thanks for highlighting the issue!

Could you clarify which exact test case passed but shouldn’t have?

Ideally, could you share a screenshot showing the test input, your program’s output, and the expected output? That’ll help us understand what’s slipping through the tests.