对于每个代码模块,你应当有测试其所有方法的一组单位测试。
For every code module, you should have a set of unit tests that exercises each of its methods.
第一组组员在一日三餐前不久喝了半升水(比美国单位一品脱多一点)。
Members of one were told to drink half a litre of water (a bit more than an American pint) shortly before each of three daily meals.
它还可以再优化 -- 例如,现在获取和存储是以 1 比特为单位进行操作的,如果以 8 个比特作为一组来处理,效率将会得到提高。
There is room for optimization -- for instance, the retrieval and storage of bits is done one by one, and it would be much more efficient if done in groups of eight.
应用推荐