Skip to content

Conversation

@miketwo
Copy link
Collaborator

@miketwo miketwo commented Sep 8, 2024

Added a test that calls upgrade() on all cards. Lots of failures. I could use some help fixing them all.

This is where I noticed we never test upgrades
@miketwo miketwo requested a review from vesper-arch September 8, 2024 14:36
@vesper-arch
Copy link
Owner

It turns out

@vesper-arch
Copy link
Owner

I'm pretty stupid

@vesper-arch
Copy link
Owner

Untitled39_20240908112621
That's apparently not how python works

@miketwo
Copy link
Collaborator Author

miketwo commented Sep 9, 2024

I've been coding since 1987 and I still make mistakes like that. (It gets worse when you know 10+ languages - I can't keep anything straight.)

That's why I test so much. Fixes everything.

@vesper-arch
Copy link
Owner

wonder if i can use regex to make this faster

@miketwo
Copy link
Collaborator Author

miketwo commented Sep 15, 2024

wonder if i can use regex to make this faster

Definitely. You could do something like:
image

@vesper-arch
Copy link
Owner

vesper-arch commented Sep 15, 2024

I now hate vim regex
like seriously why doesnt this work
image

@vesper-arch
Copy link
Owner

image
HAHAHA IT WORKS YES

@vesper-arch vesper-arch marked this pull request as ready for review September 15, 2024 17:06
@vesper-arch vesper-arch merged commit 93cf8ce into main Sep 15, 2024
@vesper-arch vesper-arch deleted the upgrade_test branch September 15, 2024 17:07
@miketwo
Copy link
Collaborator Author

miketwo commented Sep 15, 2024

Huzzah!
thumbs-up-computer-kid-gif

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.

3 participants