     time1 = Time.from_erl!({1, 1, 1}, {5000, 3})
     time2 = Time.from_erl!({1, 1, 1}, {5000, 6})
     time3 = Time.from_erl!({23, 1, 1}, {5000, 6})
-    assert :eq == Time.compare(time1, time1)
-    assert :eq == Time.compare(time1, time2)
-    assert :lt == Time.compare(time1, time3)
-    assert :gt == Time.compare(time3, time2)
+    assert Time.compare(time1, time1) == :eq
+    assert Time.compare(time1, time2) == :eq
+    assert Time.compare(time1, time3) == :lt
+    assert Time.compare(time3, time2) == :gt
   end
 end
 

                    hour: 23, minute: 0, second: 7, microsecond: {0, 0},
                    utc_offset: -14400, std_offset: 0, time_zone: "America/Manaus"}

    assert :eq == DateTime.compare(datetime1, datetime1)
    assert :lt == DateTime.compare(datetime1, datetime2)
    assert :gt == DateTime.compare(datetime2, datetime1)
  end
end

  test "compare/2" do
    ndt1 = NaiveDateTime.from_erl!({{2000, 4, 16}, {13, 30, 15}}, {4999, 3})
    ndt2 = NaiveDateTime.from_erl!({{2000, 4, 16}, {13, 30, 15}}, {5000, 3})
    assert NaiveDateTime.compare(ndt1, ndt1) == :eq
    assert NaiveDateTime.compare(ndt1, ndt2) == :lt
    assert NaiveDateTime.compare(ndt2, ndt1) == :gt
  end
end

