Adding an interface for '/='.

This commit is contained in:
Erik Svedäng 2017-11-24 17:17:49 +01:00
parent de4cae3a9c
commit 88fd0dc32c
4 changed files with 8 additions and 4 deletions

View File

@ -1,2 +1,6 @@
(definterface = (λ [a a] Bool))
;;(definterface copy (λ [&a] a)) ;; This is defined internally now! Don't override it.
(definterface /= (λ [a a] Bool))
;; These interfaces are defined internally, don't override them:
;;(definterface copy (λ [&a] a))
;;(definterface str (λ [a] String))

View File

@ -16,7 +16,7 @@
(assert-equal test
&(init 1.0 2.0) &(init 1.0 1.0)
"/= operator works"
/=
Vector2./=
Vector2.str)
(assert-equal test
&(init 3.0 3.0)

View File

@ -16,7 +16,7 @@
(assert-equal test
&(init 1.0 2.0 3.0) &(init 1.0 1.0 3.0)
"/= operator works"
/=
Vector3./=
Vector3.str)
(assert-equal test
&(init 3.0 3.0 4.5)

View File

@ -16,7 +16,7 @@
(assert-equal test
&(init 4 [1.0 2.0 3.0 4.0]) &(init 4 [1.0 1.0 3.0 4.0])
"/= operator works"
/=
VectorN./=
VectorN.str)
(assert-equal test
&(init 3 [3.0 3.0 4.5])