-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix expect![[]] #38
base: master
Are you sure you want to change the base?
fix expect![[]] #38
Conversation
src/lib.rs
Outdated
@@ -850,7 +855,7 @@ line1 | |||
); | |||
|
|||
// Check `expect![[ ]]` as well. | |||
assert_eq!(locate_end("]]"), Some(0)); | |||
assert_eq!(locate_end("[]]"), Some(2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests should have [
at the beginning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Is the original test still relevant?
- If so, should we leave in both assertions?
- If so, what should it equal?
assert_eq!(locate_end("[]]"), Some(2)); | |
assert_eq!(locate_end("]]"), todo!()); | |
assert_eq!(locate_end("[]]"), Some(2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, I think actually it's not relevant. Because locate
is used for update
. But when update
is called, the syntax has to be correct.
It seems to break in #27. ping @ecstatic-morse @matklad to take a look |
@xxchan Is the PR ready to be merged? I'm taking a look now… |
Signed-off-by: xxchan <[email protected]>
207bbe3
to
5d4cb8e
Compare
Signed-off-by: xxchan <[email protected]>
I just came up with a better solution |
Signed-off-by: xxchan <[email protected]>
75e4580
to
7178666
Compare
is this project abandoned? I just came here inquiring about the same issue and I see it's not been merged after months... |
Still maintained. When I last checked, the PR wasn’t ready to merge. I’ll take another look later today!
…On Thu, Oct 24, 2024, at 04:57, Simon Thornington wrote:
is this project abandoned? I just came here inquiring about the same issue and I see it's not been merged after months...
—
Reply to this email directly, view it on GitHub <#38 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAF3WNMUTQXI5B3VH7QTNLZ47PP3AVCNFSM6AAAAAAYGRANFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZTGAYTOMBSGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
fix #37