Skip to content

Commit a07adf3

Browse files
committed
[assembler] Avoid using AE register names as symbols in tests.
1 parent 71d2539 commit a07adf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assembler/src/asmlib/driver/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ fn test_undefined_symbol_in_calculation() {
832832
fn 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
}

0 commit comments

Comments
 (0)