Warning: session_start(): open(/var/lib/php/sessions/sess_dh0co6nm1efo0b553s243fvehh, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
p-exp {
BakedBot bot = bakedBotWithRules([[
anyInput()
&& $x, $y in eval(listToOverlappingPairs(words(ai_input())))
=> fact($_q_x and $_q_y are words next to each other)
]]);
setOpt(bot.factsBot(), useIterate := true);
bot.imagineMode();
bot.check("hello world yo", [[
Storing imaginary fact: "hello" and "world" are words next to each other
Storing imaginary fact: "world" and "yo" are words next to each other
]]);
assertEqualsVerbose(2, l(get(bot.factsBot(), 'imaginedFacts)));
}