Transpiled version (3082L) is out of date.
1 | svoid test_parseBusinessHours() {
|
2 | Map<S, L<IntRange>> examples = test_parseBusinessHours_examples(); |
3 | testFunctionValues parseBusinessHours(mapToParams(examples)); |
4 | } |
5 | |
6 | static Map<S, L<IntRange>> test_parseBusinessHours_examples() {
|
7 | // end values are one hour or one minute less because the range is inclusive |
8 | ret litorderedmap( |
9 | null, ll(), |
10 | "", ll(), |
11 | " ", ll(), |
12 | "9-12", ll(intRange(9*60, 12*60)), |
13 | "9-13", ll(intRange(9*60, 13*60)), |
14 | "15-18", ll(intRange(15*60, 18*60)), |
15 | "9-10, 16-17", ll(intRange(9*60, 10*60), intRange(16*60, 17*60)), |
16 | "9:30-10:45", ll(intRange(9*60+30, 10*60+45)), |
17 | |
18 | "9-5", ll(intRange(9*60, 17*60)), |
19 | ); |
20 | } |
Began life as a copy of #1028601
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1028624 |
| Snippet name: | test_parseBusinessHours (OK) |
| Eternal ID of this version: | #1028624/9 |
| Text MD5: | 1436c37f56a49a9b1d09add4975dce39 |
| Author: | stefan |
| Category: | javax / english nlp |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-06-29 19:39:51 |
| Source code size: | 687 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 466 / 605 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |