!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)));
}