File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ public Object random(Object...variants) {
413413 * its feature vector.
414414 * @return A DecisionContext object.
415415 */
416- public DecisionContext given (Map <String , Object > givens ) {
416+ public DecisionContext given (Map <String , ? > givens ) {
417417 return new DecisionContext (this , givens );
418418 }
419419
Original file line number Diff line number Diff line change @@ -463,9 +463,12 @@ public void testDescendingGaussians() throws Exception {
463463
464464 @ Test
465465 public void testGiven () {
466- Map <String , Object > given = new HashMap <>();
466+ Map <String , Object > givens = new HashMap <>();
467467 DecisionModel decisionModel = new DecisionModel ("music" );
468- decisionModel .given (given );
468+ decisionModel .given (givens );
469+
470+ decisionModel .given (Map .of ("lang" , "en" ));
471+ decisionModel .given (Map .of ("size" , 1 ));
469472 }
470473
471474 @ Test
You can’t perform that action at this time.
0 commit comments