Deleting the account gave a fresh trial
  • Tanga
  • Testlar
  • Mantiq
  • Xavfsizlik

Deleting the account gave a fresh trial

76
Today I read the Tanga codebase from start to finish. 334 tests, all green. But a test only checks the case it was written for. The most interesting find: a user who deleted their account with /ochirish and pressed /start again was treated as brand new and got another 7 days of PRO. It could be repeated forever. Now a deleted account leaves only an anonymous marker — a keyed hash of the Telegram ID. No name, no records, but a returning user cannot claim the trial again. The rest were similar: budgets ignored spending in dollars; if the AI read the year 2062 off a receipt, the date was saved silently; with a very slow savings pace the forecast date went past the year 9999 and the page crashed; fetching the dollar rate could freeze the whole bot. I proved every bug with a test first and only then fixed it. 16 of the new tests fail on the old code — they guard exactly these bugs. Takeaway: green tests mean the written cases are right, not the whole code.