mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-17 16:38:14 +03:00
Adding an interface for '/='.
This commit is contained in:
parent
de4cae3a9c
commit
88fd0dc32c
@ -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))
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user