web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
341 B

  1. "use strict";
  2. var isValidFormat = RegExp.prototype.test.bind(/^[a-z0-9]+$/);
  3. module.exports = function (t, a) {
  4. a(typeof t(), "string");
  5. a.ok(t().length > 7);
  6. a.not(t({ isUnique: true }), t({ isUnique: true }));
  7. a.ok(isValidFormat(t()));
  8. a(t({ length: 1 }).length, 1);
  9. a(t({ length: 100 }).length, 100);
  10. a(t({ length: 0 }), "");
  11. };