<feed xmlns='http://www.w3.org/2005/Atom'>
<title>WRMS/wrms_test.go, branch main</title>
<subtitle>Wireless Remote Media System</subtitle>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/'/>
<entry>
<title>fix broken indices in songs after Playlist.OrderedList()</title>
<updated>2023-08-08T16:41:56+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-08-08T16:41:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=67b25dea819ea27a9229afebee65e4110c4c6678'/>
<id>67b25dea819ea27a9229afebee65e4110c4c6678</id>
<content type='text'>
04205039f24ea6e71d2ce94c7cb7e1395f95179e was not enough to
fix the ordered list issue introduced by
26f0033ebb5f8e7c204a042709e3dfa885eac868.
heap.Pop uses Swap internally which modifies as songs index.

We fix the broken indices by overriding them after the ordered list
was created.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
04205039f24ea6e71d2ce94c7cb7e1395f95179e was not enough to
fix the ordered list issue introduced by
26f0033ebb5f8e7c204a042709e3dfa885eac868.
heap.Pop uses Swap internally which modifies as songs index.

We fix the broken indices by overriding them after the ordered list
was created.
</pre>
</div>
</content>
</entry>
<entry>
<title>make time bonus config value usable through yaml</title>
<updated>2023-07-31T16:07:41+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-07-31T16:07:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=103e473f200b76db20ef8d9af3c98db2bfb2aa29'/>
<id>103e473f200b76db20ef8d9af3c98db2bfb2aa29</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>use Logf() instead of Log(fmt.Sprintf())</title>
<updated>2023-07-31T16:04:18+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-07-31T16:04:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=8205d426e9681abc470dcb2e49344246a01b2e49'/>
<id>8205d426e9681abc470dcb2e49344246a01b2e49</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>implement LoadPlaylist for mockPlayer</title>
<updated>2023-07-31T15:31:39+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-07-31T15:31:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=d1880e792ffe5b3f350ad0b856c33568b7657603'/>
<id>d1880e792ffe5b3f350ad0b856c33568b7657603</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix applyTimeBonus by always using Song pointers</title>
<updated>2023-07-22T13:15:47+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-07-22T13:15:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=26f0033ebb5f8e7c204a042709e3dfa885eac868'/>
<id>26f0033ebb5f8e7c204a042709e3dfa885eac868</id>
<content type='text'>
Storing song objects in the Songs slice and using pointers to the
underlying array slots breaks if the underlying array must be grown.
When the array is grown the objects are copied to the new array and
the pointers used in queue point to the old objects.
This causes that Playlist.applyTimeBonus may not correctly apply
to the most recent list of songs.

This is fixed by always using Song pointers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Storing song objects in the Songs slice and using pointers to the
underlying array slots breaks if the underlying array must be grown.
When the array is grown the objects are copied to the new array and
the pointers used in queue point to the old objects.
This causes that Playlist.applyTimeBonus may not correctly apply
to the most recent list of songs.

This is fixed by always using Song pointers.
</pre>
</div>
</content>
</entry>
<entry>
<title>add test for flipping a vote</title>
<updated>2023-07-22T12:47:38+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-07-22T12:47:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=d00967aa6e6ce880b5f900e8493fd93092fd36ca'/>
<id>d00967aa6e6ce880b5f900e8493fd93092fd36ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>implement playlist in order traversal</title>
<updated>2023-07-21T08:50:07+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-07-21T08:50:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=9cb08df11d7446357c5d480d08d256b906d4988e'/>
<id>9cb08df11d7446357c5d480d08d256b906d4988e</id>
<content type='text'>
This ensures that the initial reported song array is in order.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures that the initial reported song array is in order.
</pre>
</div>
</content>
</entry>
<entry>
<title>add double add test</title>
<updated>2023-07-02T06:58:14+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-07-02T06:58:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=098390401c30ccd206f45d828b50046080906e85'/>
<id>098390401c30ccd206f45d828b50046080906e85</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add simple wrms test</title>
<updated>2023-07-01T16:54:52+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-07-01T16:54:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/WRMS/commit/?id=d491f136b40b9bff6ec0ff1e0a4f26cf855a9ffc'/>
<id>d491f136b40b9bff6ec0ff1e0a4f26cf855a9ffc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
