aboutsummaryrefslogtreecommitdiff
path: root/matrix/rooms
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-04 12:13:23 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-04 12:13:23 +0300
commite42ce27e0a3f9d04160f892f67c73b81fc076dd3 (patch)
treeedfa333b6d611c1f10e1752b3b4d6a6a9ef510a6 /matrix/rooms
parent2a02f518b2eb5903e49a74224f4ca74461c379b8 (diff)
Fix room tag tests
Diffstat (limited to 'matrix/rooms')
-rw-r--r--matrix/rooms/room_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/matrix/rooms/room_test.go b/matrix/rooms/room_test.go
index cb69dcd..258e57b 100644
--- a/matrix/rooms/room_test.go
+++ b/matrix/rooms/room_test.go
@@ -65,12 +65,12 @@ func TestRoom_Tags_Empty(t *testing.T) {
tags := room.Tags()
assert.Len(t, tags, 1)
assert.Equal(t, "", tags[0].Tag)
- assert.Equal(t, 0.5, tags[0].Order)
+ assert.Equal(t, "0.5", tags[0].Order)
}
func TestRoom_Tags_NotEmpty(t *testing.T) {
room := rooms.NewRoom("!test:maunium.net", "@tulir:maunium.net")
- room.RawTags = []rooms.RoomTag{{Tag: "foo", Order: 1}, {Tag: "bar", Order: 1}}
+ room.RawTags = []rooms.RoomTag{{Tag: "foo", Order: "1"}, {Tag: "bar", Order: "1"}}
tags := room.Tags()
assert.Equal(t, room.RawTags, tags)
}