From 4aa543a908f70c23e54ad57d59323ecefe5f7b66 Mon Sep 17 00:00:00 2001 From: Tim Morgan Date: Sun, 2 Feb 2014 15:30:41 -0600 Subject: [PATCH] Order of items in set have changed, weird. --- 25-set.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/25-set.exs b/25-set.exs index 5bafabd..08b72ec 100644 --- a/25-set.exs +++ b/25-set.exs @@ -5,12 +5,12 @@ defmodule SetTest do test "to_list" do list = HashSet.new([1, 2, 2, 3]) |> HashSet.to_list - assert list == [1, 2, 3] + assert list == [2, 3, 1] # unintuitive ordering end test "union" do union = HashSet.new([1, 2, 3]) |> HashSet.union(HashSet.new([2, 3, 4])) - assert Set.to_list(union) == [1, 2, 3, 4] + assert Set.to_list(union) == [2, 3, 4, 1] # unintuitive, but somewhat more understandable end test "intersection" do