;; -*-theme-d-*-

;; Copyright (C) 2017-2018 Tommi Höynälänmaa
;; Distributed under GNU General Public License version 3,
;; see file doc/GPL-3.

;; Expected results: translation and running OK

(define-proper-program (tests test563)

  (import (standard-library core)
	  (standard-library complex)
	  (tests numerical-test-env))

  (define-simple-proc main (() <none> nonpure)
    (let ((cx1 (complex 1.0 2.0))
	  (cx2 (complex 2.0 1.1)))
      (report-boolean-test (= cx1 cx2) #f)
      (report-boolean-test (equal? cx1 cx2) #f)
      (report-boolean-test (equal-values? cx1 cx2) #f)
      (report-boolean-test (equal-objects? cx1 cx2) #f)
      (report-boolean-test (equal-contents? cx1 cx2) #f)
      (report-boolean-test (= cx1 cx1) #t)
      (report-boolean-test (equal? cx1 cx1) #t)
      (report-boolean-test (equal-values? cx1 cx1) #t)
      (report-boolean-test (equal-objects? cx1 cx1) #t)
      (report-boolean-test (equal-contents? cx1 cx1) #t)
      (report-boolean-test (= cx1 (complex 0.0 0.0)) #f)
      (report-boolean-test (equal? cx1 (complex 0.0 0.0)) #f)
      (report-boolean-test (equal-values? cx1 (complex 0.0 0.0)) #f)
      (report-boolean-test (equal-objects? cx1 (complex 0.0 0.0)) #f)
      (report-boolean-test (equal-contents? cx1 (complex 0.0 0.0)) #f))))
