Skip to content

Commit 6e05e0c

Browse files
committed
[assembler] verify that decimal also works in comma expressions.
1 parent f474257 commit 6e05e0c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

assembler/src/asmlib/driver/tests.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,15 @@ fn test_440_330_220_110_with_commas() {
533533
assert_eq!(program.chunks[0].words[0], u36!(0o440330220110));
534534
}
535535

536+
#[test]
537+
fn test_alternate_base_with_commas() {
538+
let input = "10·,11·,,12,13· ** Note that 12 is in the default, octal, base\n";
539+
let program = assemble_source(input, Default::default()).expect("program is valid");
540+
dbg!(&program);
541+
assert_eq!(program.chunks.len(), 1); // one chunk (no RC-block needed).
542+
assert_eq!(program.chunks[0].words[0], u36!(0o012_013_012_015));
543+
}
544+
536545
#[test]
537546
fn test_440_330_220_110_with_commas_in_rc_word() {
538547
let input = "{440,330,,220,110}\n";

0 commit comments

Comments
 (0)