Libraryless. Click here for Pure Java version (1866L/12K).
1 | svoid test_regexp_integer_maxDigits() {
|
2 | testFunctionValues_twoArgs(func(int maxDigits, S s) {
|
3 | regexpMatches(regexp_integer_maxDigits(maxDigits), s) |
4 | }, |
5 | pair(3, "abc"), false, |
6 | pair(3, ""), false, |
7 | pair(3, "1"), true, |
8 | pair(3, "12"), true, |
9 | pair(3, "123"), true, |
10 | pair(3, "1234"), false, |
11 | pair(2, "43"), true, |
12 | pair(2, "435"), false); |
13 | } |
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: | #1023984 |
| Snippet name: | test_regexp_integer_maxDigits |
| Eternal ID of this version: | #1023984/5 |
| Text MD5: | 7916f4e0eb2887646a5f6b73f250de48 |
| Transpilation MD5: | cfafbbcdfc6a3130ea359bec0f7c7088 |
| 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:03:47 |
| Source code size: | 379 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 385 / 525 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |