@@ -498,7 +498,7 @@ pub mod diagnostics {
498498
499499 assert_eq ! ( diagnostics. len( ) , 1 ) ;
500500 let diagnostic = & diagnostics[ 0 ] ;
501- assert_eq ! ( diagnostic. code, Some ( "" . to_string( ) ) ) ;
501+ assert_eq ! ( diagnostic. code, Some ( "lexical " . to_string( ) ) ) ;
502502 assert_eq ! ( diagnostic. message, "Invalid token" . to_string( ) ) ;
503503 assert_eq ! ( diagnostic. severity, Severity :: Error ) ;
504504 assert_eq ! ( diagnostic. labels. len( ) , 1 ) ;
@@ -514,7 +514,7 @@ pub mod diagnostics {
514514
515515 assert_eq ! ( diagnostics. len( ) , 1 ) ;
516516 let diagnostic = & diagnostics[ 0 ] ;
517- assert_eq ! ( diagnostic. code, Some ( "" . to_string( ) ) ) ;
517+ assert_eq ! ( diagnostic. code, Some ( "compiler " . to_string( ) ) ) ;
518518 assert_eq ! ( diagnostic. message, "undefined: var" . to_string( ) ) ;
519519 assert_eq ! ( diagnostic. severity, Severity :: Error ) ;
520520 assert_eq ! ( diagnostic. labels. len( ) , 1 ) ;
@@ -533,7 +533,7 @@ pub mod diagnostics {
533533
534534 assert_eq ! ( diagnostics. len( ) , 1 ) ;
535535 let diagnostic = & diagnostics[ 0 ] ;
536- assert_eq ! ( diagnostic. code, Some ( "" . to_string( ) ) ) ;
536+ assert_eq ! ( diagnostic. code, Some ( "compiler " . to_string( ) ) ) ;
537537 assert_eq ! (
538538 diagnostic. message,
539539 "expects 2 arguments but received 3" . to_string( )
0 commit comments