Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1023991 // test_regexp_integer_minDigits (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1866L/12K).

svoid test_regexp_integer_minDigits() {
  testFunctionValues_twoArgs(func(int minDigits, S s) {
    regexpMatches(regexp_integer_minDigits(minDigits), s)
  },
    pair(3, "abc"), false,
    pair(3, ""), false,
    pair(3, "1"), false,
    pair(3, "12"), false,
    pair(3, "123"), true,
    pair(3, "1234"), true,
    pair(2, "43"), true,
    pair(2, "435"), true);
}

Author comment

Began life as a copy of #1023984

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023991
Snippet name: test_regexp_integer_minDigits (OK)
Eternal ID of this version: #1023991/2
Text MD5: fbf246fa0bfb0b3266734af6fb57e6e2
Transpilation MD5: f3b71fb92f40d0c327d89010b7d16297
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-14 21:44:02
Source code size: 379 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 119 / 193
Version history: 1 change(s)
Referenced in: [show references]