X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Ftests%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FEquality.scl;fp=bundles%2Forg.simantics.scl.compiler%2Ftests%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FEquality.scl;h=acf00e936952339869cf08c4ee1d39e27c7a7f59;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Equality.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Equality.scl new file mode 100644 index 000000000..acf00e936 --- /dev/null +++ b/bundles/org.simantics.scl.compiler/tests/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