test(data): seed the demo table with dates that repeat
The demo rows had a random date each, so a date filter over the demo table matched at most a couple of rows - which is not enough to show a date filter working, in a report or in a test. The generated rows now cycle through 24 first-of-month dates over two years, about 20 rows each. No test asserts a specific generated date; the fixed rows at the top of the table are unchanged.
This commit is contained in:
1 parent
405b28dccc
commit
8449ab3987
1 file changed
+3
-1
@@ -2355,7 +2355,9 @@ insert into &lib..MPE_VALIDATIONS set
|
||||
,some_char="&x bottles of beer on the wall"
|
||||
,some_dropdown='Option 1'
|
||||
,some_num=ranuni(0)
|
||||
,some_date=round(ranuni(0)*1000,1)
|
||||
/* First of the month, cycling through two years: a randomly spread date
|
||||
gave every row its own day, so a date filter never returned many rows. */
|
||||
,some_date=intnx('month','01JAN1960'd,mod(&x,24),'S')
|
||||
,some_datetime=round(ranuni(0)*50000,1)
|
||||
,some_time=round(ranuni(0)*100,1)
|
||||
,some_shortnum=6+round(ranuni(0)*94,1)
|
||||
|
||||
Reference in new issue
Block a user