composablesys / collabs

Collabs library monorepo

Home Page:https://collabs.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CCounter large number tests

mweidner037 opened this issue · comments

Test with numbers large enough to:

  • trigger the modulus
  • exceed uint32 size

Make sure protobuf.js doesn't convert safe ints to Long's, or if it does, convert CCounter to use longs.

Also test load/save

Use protobufjs/protobuf.js#1109 (comment) to also test in an environment without Long (e.g. a browser bundle that has properly excluded Long).

These won't be necessary after we do #177