Difference between revisions of "Template:Interval/testcases"
Jump to navigation
Jump to search
imported>Theopolisme (well then) |
imported>Mr. Stradivarius (use a table for easier comparison) |
||
| Line 1: | Line 1: | ||
{{template testcases}} | {{template testcases}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== rule = ≥ (default) === | === rule = ≥ (default) === | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{tlx|Interval|2=n=7|3=2|4=4|5=6}} | + | {| class="wikitable" |
| + | |- | ||
| + | ! Code | ||
| + | ! Main | ||
| + | ! Sandbox | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=1|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=1|2|4|6}} | ||
| + | | {{Interval/sandbox|n=1|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=2|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=2|2|4|6}} | ||
| + | | {{Interval/sandbox|n=2|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=3|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=3|2|4|6}} | ||
| + | | {{Interval/sandbox|n=3|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=4|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=4|2|4|6}} | ||
| + | | {{Interval/sandbox|n=4|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=5|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=5|2|4|6}} | ||
| + | | {{Interval/sandbox|n=5|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=6|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=6|2|4|6}} | ||
| + | | {{Interval/sandbox|n=6|2|4|6}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=7|3=2|4=4|5=6}} | ||
| + | | {{Interval|n=7|2|4|6}} | ||
| + | | {{Interval/sandbox|n=7|2|4|6}} | ||
| + | |} | ||
=== rule = > === | === rule = > === | ||
| − | |||
| − | |||
| − | |||
| − | {{tlx|Interval|2=n=3|3=2|4=4|5=6|6=rule=>}} | + | {| class="wikitable" |
| + | |- | ||
| + | ! Code | ||
| + | ! Main | ||
| + | ! Sandbox | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=1|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=1|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=1|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=2|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=2|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=2|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=3|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=3|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=3|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=4|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=4|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=4|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=5|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=5|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=5|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=6|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=6|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=6|2|4|6|rule=>}} | ||
| + | |- | ||
| + | | {{tlx|Interval|2=n=7|3=2|4=4|5=6|6=rule=>}} | ||
| + | | {{Interval|n=7|2|4|6|rule=>}} | ||
| + | | {{Interval/sandbox|n=7|2|4|6|rule=>}} | ||
| + | |} | ||
| − | + | === Many numbers === | |
| − | { | + | {| class="wikitable" |
| − | + | |- | |
| − | + | ! Code | |
| − | + | ! Main | |
| − | {{tlx|Interval|2=n= | + | ! Sandbox |
| − | + | |- | |
| − | + | | {{tlx|Interval|2=n=14|3=2|4=4|5=6|6=8|7=9|8=10}} | |
| − | {{ | + | | {{Interval|n=14|2|4|6|8|9|10}} |
| + | | {{Interval/sandbox|n=14|2|4|6|8|9|10}} | ||
| + | |} | ||
===Example with timestamp=== | ===Example with timestamp=== | ||
| − | |||
| − | {{tlx|interval | + | {| class="wikitable" |
| + | |- | ||
| + | ! Code | ||
| + | ! Main | ||
| + | ! Sandbox | ||
| + | |- | ||
| + | | {{tlx|interval|3=14 October|4=24 October|5=29 October|6=7 December|7=format=time}} | ||
| + | | {{interval|14 October|24 October|29 October|7 December|format=time}} | ||
| + | | {{interval/sandbox|14 October|24 October|29 October|7 December|format=time}} | ||
| + | |} | ||
=== Invalid === | === Invalid === | ||
| − | |||
| − | |||
| − | {{ | + | {| class="wikitable" |
| + | |- | ||
| + | ! Code | ||
| + | ! Main | ||
| + | ! Sandbox | ||
| + | |- | ||
| + | | {{tlx|Interval|2=1|3=2|4=4|5=6}} | ||
| + | | {{Interval|1|2|4|6}} | ||
| + | | {{Interval/sandbox|1|2|4|6}} | ||
| + | |} | ||
Revision as of 13:38, 9 December 2013
rule = ≥ (default)
| Code | Main | Sandbox |
|---|---|---|
{{Interval|n=1|2|4|6}}
|
0-1 | 0-1 |
{{Interval|n=2|2|4|6}}
|
1-2 | 1-2 |
{{Interval|n=3|2|4|6}}
|
1-2 | 1-2 |
{{Interval|n=4|2|4|6}}
|
2-3 | 2-3 |
{{Interval|n=5|2|4|6}}
|
2-3 | 2-3 |
{{Interval|n=6|2|4|6}}
|
3-4 | 3-4 |
{{Interval|n=7|2|4|6}}
|
3-4 | 3-4 |
rule = >
| Code | Main | Sandbox |
|---|---|---|
{{Interval|n=1|2|4|6|rule=>}}
|
0-1 | 0-1 |
{{Interval|n=2|2|4|6|rule=>}}
|
0-1 | 0-1 |
{{Interval|n=3|2|4|6|rule=>}}
|
1-2 | 1-2 |
{{Interval|n=4|2|4|6|rule=>}}
|
1-2 | 1-2 |
{{Interval|n=5|2|4|6|rule=>}}
|
2-3 | 2-3 |
{{Interval|n=6|2|4|6|rule=>}}
|
2-3 | 2-3 |
{{Interval|n=7|2|4|6|rule=>}}
|
3-4 | 3-4 |
Many numbers
| Code | Main | Sandbox |
|---|---|---|
{{Interval|n=14|2|4|6|8|9|10}}
|
6-7 | 6-7 |
Example with timestamp
| Code | Main | Sandbox |
|---|---|---|
{{interval|14 October|24 October|29 October|7 December|format=time}}
|
4-5 | 4-5 |
Invalid
| Code | Main | Sandbox |
|---|---|---|
{{Interval|1|2|4|6}}
|
0-1 | 0-1 |