                     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)
+    assert DateTime.compare(datetime1, datetime1) == :eq
+    assert DateTime.compare(datetime1, datetime2) == :lt
+    assert DateTime.compare(datetime2, datetime1) == :gt
   end
 end

  test "compare/2" do
    date1 = Date.from_erl!({2000, 1, 1})
    date2 = Date.from_erl!({2000, 1, 2})
    assert :eq == Date.compare(date1, date1)
    assert :lt == Date.compare(date1, date2)
    assert :gt == Date.compare(date2, date1)
  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

