Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
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.

16 lines
380 B

  1. var optimist = require('../index');
  2. var test = require('tap').test;
  3. test('-n123', function (t) {
  4. t.plan(1);
  5. var parse = optimist.parse([ '-n123' ]);
  6. t.equal(parse.n, 123);
  7. });
  8. test('-123', function (t) {
  9. t.plan(3);
  10. var parse = optimist.parse([ '-123', '456' ]);
  11. t.equal(parse['1'], true);
  12. t.equal(parse['2'], true);
  13. t.equal(parse['3'], 456);
  14. });