You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cometCalendarParser.go and mazevoParser.go, the final result slice is built by ranging over maps. In Go, map iteration order is random, so the order of dates, buildings, and rooms in the output JSON changes every run. This makes the output hard to unit test, and hard to differentiate change on consecutive runs. Sort the dates, buildings, and rooms before appending them to result. Use sort.Strings or slices.Sort for each level of the map before you build the slices.
Activity