[riot-notifications] [RIOT-OS/RIOT] core: introduce crossfile arrays (xfa) v3 (#15002)

Marian Buschsieweke notifications at github.com
Tue Jan 5 13:51:21 CET 2021


@maribu commented on this pull request.



> +                /* tests-core-xfa-data1.c */
+                TEST_ASSERT_EQUAL_STRING("xfatest1", xfatest[k].text);
+                TEST_ASSERT(!(found & BIT0));
+                found |= BIT0;
+                break;
+            case 0xbeef:
+                /* tests-core-xfa-data2.c */
+                TEST_ASSERT_EQUAL_STRING("another test string", xfatest[k].text);
+                TEST_ASSERT(!(found & BIT1));
+                found |= BIT1;
+                break;
+            default:
+                break;
+        }
+    }
+    TEST_ASSERT_EQUAL_INT((1U << (n + 1)) - 1, found);

```suggestion
    TEST_ASSERT_EQUAL_INT((1U << n) - 1, found);
```

Sorry, my bad. I should better leave calculations to the machines :-D

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15002#pullrequestreview-561761906
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210105/3a16bb00/attachment.htm>


More information about the notifications mailing list