Skip to content

Commit 758874c

Browse files
committed
example.dbc: add testcase that would be generated to a rust keyword
1 parent 636f7ae commit 758874c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

testing/dbc-examples/example.dbc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ BO_ 512 Bar: 8 Ipsum
1717
SG_ Two : 7|8@0+ (0.39,0) [0.00|100] "%" Dolor
1818
SG_ Three : 13|3@0+ (1,0) [0|7] "" Dolor
1919
SG_ Four : 10|2@0+ (1,0) [0|3] "" Dolor
20-
SG_ Five : 30|1@0+ (1,0) [0|1] "boolean" Dolor
20+
SG_ Type : 30|1@0+ (1,0) [0|1] "boolean" Dolor
2121

2222

2323

@@ -29,4 +29,4 @@ BO_ 512 Bar: 8 Ipsum
2929

3030
VAL_ 512 Three 0 "OFF" 1 "ON" 2 "ONER" 3 "ONEST";
3131
VAL_ 512 Four 0 "Off" 1 "On" 2 "Oner" 3 "Onest";
32-
VAL_ 512 Five 0 "0Off" 1 "1On" 2 "2Oner" 3 "3Onest";
32+
VAL_ 512 Type 0 "0Off" 1 "1On" 2 "2Oner" 3 "TYPE";

testing/dbc-examples/example.kcd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<Label name="Onest" value="3"/>
5858
</LabelSet>
5959
</Signal>
60-
<Signal name="Five" offset="25" endianess="big">
60+
<Signal name="Type" offset="25" endianess="big">
6161
<Consumer>
6262
<NodeRef id="3"/>
6363
</Consumer>
@@ -66,7 +66,7 @@
6666
<Label name="0Off" value="0"/>
6767
<Label name="1On" value="1"/>
6868
<Label name="2Oner" value="2"/>
69-
<Label name="3Onest" value="3"/>
69+
<Label name="TYPE" value="3"/>
7070
</LabelSet>
7171
</Signal>
7272
</Message>

0 commit comments

Comments
 (0)