From e42ce27e0a3f9d04160f892f67c73b81fc076dd3 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 4 May 2018 12:13:23 +0300 Subject: Fix room tag tests --- matrix/rooms/room_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matrix/rooms/room_test.go') 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) } -- cgit v1.2.3