Skip to content

Comments

Fixed problems with numeric input#25

Open
sy-python wants to merge 3 commits intozmbc:mainfrom
sy-python:pr_num_input
Open

Fixed problems with numeric input#25
sy-python wants to merge 3 commits intozmbc:mainfrom
sy-python:pr_num_input

Conversation

@sy-python
Copy link

Fixes issue #22.
Assumes #23 is an issues and fixes it.

… valid number, for consistency with other SPL implementations
@zmbc
Copy link
Owner

zmbc commented Dec 2, 2024

Hi @sy-python! Thank you so much for your contribution. Overall this looks great. I have a few nitpicky questions about the intended behavior, which I'll ask in the relevant issues :)

assert exc.value.interpreter == s
s.state.character_by_name("Romeo").value = 42
s.run_sentence("Listen to your heart!", "Juliet")
assert s.state.character_by_name("Romeo").value == 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assert presumably needs to change to -2 to pass?

@zmbc
Copy link
Owner

zmbc commented May 8, 2025

Yep, looks like it @sy-python -- could you update the tests? I'm happy to merge this without documentation, but do need the tests to pass.

@sy-python
Copy link
Author

Hello, sorry, was a bit busy with other things, will do this this week!

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

Successfully merging this pull request may close these issues.

2 participants