@@ -15,6 +15,7 @@ use crate::{LexedStr, TopEntryPoint};
1515#[ test]
1616fn lex_ok ( ) {
1717 for case in TestCase :: list ( "lexer/ok" ) {
18+ let _guard = stdx:: panic_context:: enter ( format ! ( "{:?}" , case. rs) ) ;
1819 let actual = lex ( & case. text ) ;
1920 expect_file ! [ case. rast] . assert_eq ( & actual)
2021 }
@@ -23,6 +24,7 @@ fn lex_ok() {
2324#[ test]
2425fn lex_err ( ) {
2526 for case in TestCase :: list ( "lexer/err" ) {
27+ let _guard = stdx:: panic_context:: enter ( format ! ( "{:?}" , case. rs) ) ;
2628 let actual = lex ( & case. text ) ;
2729 expect_file ! [ case. rast] . assert_eq ( & actual)
2830 }
@@ -46,6 +48,7 @@ fn lex(text: &str) -> String {
4648#[ test]
4749fn parse_ok ( ) {
4850 for case in TestCase :: list ( "parser/ok" ) {
51+ let _guard = stdx:: panic_context:: enter ( format ! ( "{:?}" , case. rs) ) ;
4952 let ( actual, errors) = parse ( TopEntryPoint :: SourceFile , & case. text ) ;
5053 assert ! ( !errors, "errors in an OK file {}:\n {actual}" , case. rs. display( ) ) ;
5154 expect_file ! [ case. rast] . assert_eq ( & actual) ;
@@ -55,6 +58,7 @@ fn parse_ok() {
5558#[ test]
5659fn parse_inline_ok ( ) {
5760 for case in TestCase :: list ( "parser/inline/ok" ) {
61+ let _guard = stdx:: panic_context:: enter ( format ! ( "{:?}" , case. rs) ) ;
5862 let ( actual, errors) = parse ( TopEntryPoint :: SourceFile , & case. text ) ;
5963 assert ! ( !errors, "errors in an OK file {}:\n {actual}" , case. rs. display( ) ) ;
6064 expect_file ! [ case. rast] . assert_eq ( & actual) ;
@@ -64,6 +68,7 @@ fn parse_inline_ok() {
6468#[ test]
6569fn parse_err ( ) {
6670 for case in TestCase :: list ( "parser/err" ) {
71+ let _guard = stdx:: panic_context:: enter ( format ! ( "{:?}" , case. rs) ) ;
6772 let ( actual, errors) = parse ( TopEntryPoint :: SourceFile , & case. text ) ;
6873 assert ! ( errors, "no errors in an ERR file {}:\n {actual}" , case. rs. display( ) ) ;
6974 expect_file ! [ case. rast] . assert_eq ( & actual)
@@ -73,6 +78,7 @@ fn parse_err() {
7378#[ test]
7479fn parse_inline_err ( ) {
7580 for case in TestCase :: list ( "parser/inline/err" ) {
81+ let _guard = stdx:: panic_context:: enter ( format ! ( "{:?}" , case. rs) ) ;
7682 let ( actual, errors) = parse ( TopEntryPoint :: SourceFile , & case. text ) ;
7783 assert ! ( errors, "no errors in an ERR file {}:\n {actual}" , case. rs. display( ) ) ;
7884 expect_file ! [ case. rast] . assert_eq ( & actual)
0 commit comments