api#326 Сохранить прежний random и чужие JSON токены
deploy-preland / deploy zoomstage.online (push) Successful in 45s
deploy-preland / deploy zoomstage.online (push) Successful in 45s
This commit is contained in:
1 parent
81e189ca67
commit
08febba368
4 files changed
+124
-35
No files matched your search
@@ -25,4 +25,7 @@ foreach(array_keys($defaults) as $key) foreach(['1','rnd','abcdx','abc',[],null,
|
||||
}
|
||||
if(prelandResolveUtm(['tp'=>'abcd9'],$settings)['digits']['tp']!=='2')throw new RuntimeException('Ненастроенная группа tp должна fallback');
|
||||
if(prelandResolveUtm(['cons'=>'abcd9'],$settings)['digits']['cons']!=='9')throw new RuntimeException('Cons concrete не зависит от random weights');
|
||||
$zero=['utm'=>['theme'=>['weights'=>['2'=>0,'1'=>0],'default'=>'1'],'cons'=>['weights'=>['1'=>0,'2'=>0],'default'=>'2']]];
|
||||
if(prelandResolveUtm(['theme'=>'abcd0'],$zero)['digits']['theme']!=='2')throw new RuntimeException('Generic zero weights обязаны выбрать первый ключ, как до #326');
|
||||
if(prelandResolveUtm(['cons'=>'abcd0'],$zero)['digits']['cons']!=='2')throw new RuntimeException('Cons zero weights обязаны сохранить special default');
|
||||
echo "OK: numeric public boundary, defaults, weighted0, foreign values\n";
|
||||
Reference in new issue
Block a user