Skip to content

Commit

Permalink
test(plc4go/spi): fix box rendering artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Sep 30, 2024
1 parent dfead19 commit e822491
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 126 deletions.
10 changes: 5 additions & 5 deletions plc4go/internal/cbus/Connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ func TestConnection_String(t *testing.T) {
name: "a string",
want: `
╔═Connection══════════════════════════════════════════════════════════════════════════════════════════════╗
║╔═defaultConnection═══════╗╔═alphaGenerator════════════════════╗
║║╔═defaultTtl╗╔═connected╗║║╔═AlphaGenerator/currentAlpha═════╗║
║║║ 10s ║║ b0 false ║║║║ 0x67 'g' ║║
║║╚═══════════╝╚══════════╝║║╚═════════════════════════════════╝║
║╚═════════════════════════╝╚═══════════════════════════════════╝
║╔═defaultConnection═══════╗╔═alphaGenerator═══════════════
║║╔═defaultTtl╗╔═connected╗║║╔═AlphaGenerator/currentAlpha╗║
║║║ 10s ║║ b0 false ║║║║ 0x67 'g' ║║
║║╚═══════════╝╚══════════╝║║╚════════════════════════════╝║
║╚═════════════════════════╝╚══════════════════════════════
║╔═configuration═════════════════════════════════════════════════════════════════════════════════════════╗║
║║╔═Configuration═══════════════════════════════════════════════════════════════════════════════════════╗║║
║║║╔═srchk══╗╔═exstat═╗╔═pun════╗╔═localSal╗╔═pcn════╗╔═idmon══╗╔═monitor╗╔═smart══╗╔═xonXoff╗╔═connect╗║║║
Expand Down
6 changes: 3 additions & 3 deletions plc4go/internal/cbus/MessageCodec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -865,9 +865,9 @@ func TestMessageCodec_String(t *testing.T) {
║║║ b0 false ║ ║ ║
║║╚═══════════════════════════════╝ ║ ║
║╚═══════════════════════════════════════════════════════════════════════════════════════════════════════╝ ║
║╔═requestContext/RequestContext/sendIdentifyRequestBefore═════════════════════════════════════════════════════╗
║║ b1 true
║╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
║╔═requestContext/RequestContext/sendIdentifyRequestBefore
║║ b1 true
║╚════════════════════════════════════════════════════════
║╔═cbusOptions/CBusOptions═══════════════════════════════════════════════════════════╗╔═monitoredMMIs╗╔═monitoredSALs╗║
║║╔═connect╗╔═smart═╗╔═idmon═╗╔═exstat╗╔═monitor╗╔═monall╗╔═pun═══╗╔═pcn═══╗╔═srchk═╗║║ 0 element(s) ║║ 0 element(s) ║║
║║║b1 true ║║b1 true║║b1 true║║b1 true║║b1 true ║║b1 true║║b1 true║║b1 true║║b1 true║║╚══════════════╝╚══════════════╝║
Expand Down
10 changes: 5 additions & 5 deletions plc4go/internal/cbus/Tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,9 +810,9 @@ func Test_calIdentifyTag_String(t *testing.T) {
{
name: "default to string",
want: `
╔═STATUS/Attribute╗
╔═STATUS/Attribute══
║0x00 0 Manufacturer║
╚═════════════════╝`[1:],
╚═══════════════════╝`[1:],
},
}
for _, tt := range tests {
Expand Down Expand Up @@ -2278,9 +2278,9 @@ func Test_salTag_String(t *testing.T) {
{
name: "default to string",
want: `
╔═STATUS/ApplicationIdContainer═════
0x00 0 RESERVED_00
╚═══════════════════════════════════╝`[1:],
╔═STATUS/ApplicationIdContainer╗
║ 0x00 0 RESERVED_00 ║
╚══════════════════════════════╝`[1:],
},
}
for _, tt := range tests {
Expand Down
Loading

0 comments on commit e822491

Please sign in to comment.