You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mitex's design of spliting spec and parser/lexer is very clever and impressive. It however make it harder for people to understand what's happening. It would be better we can have a doc explaining what will happen when you type #mi(...)
The text was updated successfully, but these errors were encountered:
The existing snapshots of lexer, parser, and converter would help you understand correctly, by simulating execution in your mind and compared with the snapshots.
btw, you can also make your owned testpoint in bug_playground functions:
/// Convenient function to launch/debug a test case
#[test]
fnbug_playground(){}
#[test]
fntest_easy(){
assert_debug_snapshot!(parse(r#"\frac{ a }{ b }"#), @r###"
For example you write a snapshot assertion:
/// Convenient function to launch/debug a test case #[test]fnbug_playground(){assert_debug_snapshot!(parse(r#"\frac{ a }{ b }"#), @"");}
You can generate the snapshot fastly by cargo insta test --accept. You can also launch debugging by code lenses over bug_playground function to dive in execution:
mitex's design of spliting spec and parser/lexer is very clever and impressive. It however make it harder for people to understand what's happening. It would be better we can have a doc explaining what will happen when you type
#mi(
...)
The text was updated successfully, but these errors were encountered: