Commit Graph

7 Commits (master)

Author SHA1 Message Date
Paul Chesnais 14f714261f
Generics migration (#237)
* Generics migration

This attempts to migrate this library in the least invasive way by preserving as
much of the original API as possible. It does not change the tests in a
meaningful way nor does it attempt to upgrade any logic that can be simplified
or improved with generics. This is purely an API migration, and still requires a
lot of additional work to be fully ready.

* Fix a few broken tests around serialization

* Add v2 suffix

* Temporarily change mod name for testing

* Rename module to /v2
5 months ago
Ugur SEN 9f3e98d84a
Benchmark bug fixed(interface conversion).
go test -run=NO_TEST -bench . -benchmem -benchtime 1s
This command gives an error (panic: interface conversion: interface {} is int, not priorityqueue.Element) and to fix this enqueue(n)s changed to enqueu(Element{})s.
1 year ago
Emir Pasic 2bf1bd3aff Implements PriorityQueue 2 years ago
Emir Pasic 8ace639fc3 Implements PriorityQueue 2 years ago
Emir Pasic 33e824351c Fix circular buffer tests 2 years ago
Emir Pasic 9606c1a0e8 Implements CircularBuffer 2 years ago
Emir Pasic 6bf61e32be Implements queues, LinkedListQueue and ArrayQueue 2 years ago