Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self test case 13 fails - star at beginning of pattern #7

Open
jrwarwick opened this issue Dec 4, 2020 · 0 comments
Open

Self test case 13 fails - star at beginning of pattern #7

jrwarwick opened this issue Dec 4, 2020 · 0 comments

Comments

@jrwarwick
Copy link
Contributor

Running python setup.py test results in many tests passed, but test 13 fails with this message:

FAIL: test13_star (test.test_kernel.TestKernel)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pyaiml_test/aiml/test/test_kernel.py", line 106, in test13_star
    self._testTag('star test #1', 'You should test star begin', ['Begin star matched: You should'])
  File "/tmp/pyaiml_test/aiml/test/test_kernel.py", line 33, in _testTag
    self.assertIn( response, outputList, msg="input=%s"%input_ )
AssertionError: '' not found in ['Begin star matched: You should'] : input=You should test star begin

After a little tiny bit of fiddling, it looks like somehow the return of self.k.respond is blank. A little further with my limited pdb skills:

...
> /tmp/pyaiml_test/aiml/aiml/Kernel.py(390)respond()
-> response = self._respond(s, sessionID)
(Pdb) p s
'You should test star begin'
(Pdb) n
WARNING: No match found for input: You should test star begin
...

I invoked self._brain.dump() and captured to a file, which I will attempt to attach. I'm not confident in my ability to interpret, but it does look like that rule was added in, but (perhaps) strangely each word is in a separate array element instead of a single string.
braindump.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant