aboutsummaryrefslogtreecommitdiff
path: root/macros/src/tests/single.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src/tests/single.rs')
-rw-r--r--macros/src/tests/single.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/src/tests/single.rs b/macros/src/tests/single.rs
index 497d1da..97cbbb3 100644
--- a/macros/src/tests/single.rs
+++ b/macros/src/tests/single.rs
@@ -8,26 +8,26 @@ fn analyze() {
let (app, analysis) = rtic_syntax::parse2(
quote!(device = pac),
quote!(
- const APP: () = {
+ mod app {
#[task(priority = 1)]
fn a(_: a::Context) {}
#[task(priority = 2)]
fn b(_: b::Context) {}
- // first interrupt is assigned to the highest priority dispatcher
+ // First interrupt is assigned to the highest priority dispatcher
extern "C" {
fn B();
fn A();
}
- };
+ }
),
settings,
)
.unwrap();
let analysis = crate::analyze::app(analysis, &app);
- let interrupts = &analysis.interrupts[&0];
+ let interrupts = &analysis.interrupts;
assert_eq!(interrupts.len(), 2);
assert_eq!(interrupts[&2].to_string(), "B");
assert_eq!(interrupts[&1].to_string(), "A");