Questions tagged [paramterized]
4 questions
0
votes
1 answer
Define parameter in Cplex - scheduling
How can I define this parameter and input the data for this parameter based on below following?
Thanks.
Average inter-arrival time of trucks: (delta arrivalTime)=ED[0.083]
Arrival time: arrivalTime(t+1) = arrivalTime(t) + (delta arrivalTime) \forall…

LilyBre
- 11
- 2
0
votes
0 answers
How to stop/skip Parameterize test without throwing exception?
I want to try to stop the test when the param == 3. I found a way to achieve this by using Disable(). However, this approach uses throw. Is there any way I can do this without throwing exceptions?
The idea is,@RunWith(Parameterized.class)annotation…

anggor
- 79
- 1
- 10
0
votes
3 answers
How to pass a dict to a unit test using parameterized?
I have a list of dicts:
MY_LIST = [
{ 'key1': {'a': 1, 'b':2 } },
{ 'key2': {'a': 1, 'b':2 } }
]
How do I pass the dict to a django unit test using parameterized? E.g.
@parameterized.expand(MY_LIST):
def test_mytest(self, dict_item):
…

alias51
- 8,178
- 22
- 94
- 166
-1
votes
1 answer
Validate user input date as parameter - bash script
Am trying to validate that the first (and only) parameter a user passes into a script is a valid date in the format dd/mm/yyyy e.g. 13/01/2022.
I started off with a regex which was fine but doesn't validate the date. I found the suggestion (on stack…

Sevs
- 9
- 3