X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FEquality.scl;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FEquality.scl;h=acf00e936952339869cf08c4ee1d39e27c7a7f59;hb=0364f8f54b009e9e5de482d5c9d1cb7efb023141;hp=0000000000000000000000000000000000000000;hpb=7ecf07ff9aacab300f1fb900f1f0f97beb1be139;p=simantics%2Fplatform.git diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Equality.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Equality.scl new file mode 100644 index 000000000..acf00e936 --- /dev/null +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Equality.scl @@ -0,0 +1,41 @@ +import "Prelude" + +main = """ +\(newEq () ()) +\(newEq True True) +\(newEq False False) +\(newEq True False) +\(newEq False True) +\(newEq (1::Integer) (1::Integer)) +\(newEq (1::Integer) (2::Integer)) +\(newEq (1::Long) (1::Long)) +\(newEq (1::Long) (2::Long)) +\(newEq (1::Double) (1::Double)) +\(newEq (1::Double) (2::Double)) +\(newEq "a" "a") +\(newEq "a" "b") +\(newEq (Just "a") (Just "a")) +\(newEq (Just "a") (Just "b")) +\(newEq Nothing Nothing) +\(newEq (Just "a") Nothing) +\(newEq Nothing (Just "a")) +""" +-- +True +True +True +False +False +True +False +True +False +True +False +True +False +True +False +True +False +False \ No newline at end of file