File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
assembler/src/asmlib/driver Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -832,7 +832,7 @@ fn test_undefined_symbol_in_calculation() {
832832fn test_symbol_definition_loop_detection ( ) {
833833 use super :: super :: types:: AssemblerFailure ;
834834 use super :: super :: types:: { ProgramError , WithLocation } ;
835- let input = concat ! ( "A = B \n " , "B = A \n " , "A \n " , ) ;
835+ let input = concat ! ( "SA = SB \n " , "SB = SA \n " , "SA \n " , ) ;
836836 match assemble_source ( input, Default :: default ( ) ) {
837837 Err ( AssemblerFailure :: BadProgram ( errors) ) => match errors. as_slice ( ) {
838838 [ WithLocation {
@@ -842,7 +842,7 @@ fn test_symbol_definition_loop_detection() {
842842 name : SymbolName { canonical } ,
843843 span : _,
844844 } ,
845- } ] if canonical. as_str ( ) == "A " || canonical. as_str ( ) == "B " => ( ) ,
845+ } ] if canonical. as_str ( ) == "SA " || canonical. as_str ( ) == "SB " => ( ) ,
846846 otherwise => {
847847 panic ! ( "expected an error from the assembler, but not : {otherwise:?}" ) ;
848848 }
You can’t perform that action at this time.
0 commit comments