Mercurial > hg > truffle
diff truffle/com.oracle.truffle.sl.test/src/tests/Null.sl @ 22201:df6a1647cfb3
Move .sl testcases/outputs (resources) into projects src directory
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Tue, 29 Sep 2015 15:01:34 +0200 |
parents | truffle/com.oracle.truffle.sl.test/tests/Null.sl@9c8c0937da41 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/truffle/com.oracle.truffle.sl.test/src/tests/Null.sl Tue Sep 29 15:01:34 2015 +0200 @@ -0,0 +1,13 @@ +/* The easiest way to generate null: a function without a return statement implicitly returns null. */ +function null() { +} + +function main() { + println(null()); + println(null() == null()); + println(null() != null()); + println(null() == 42); + println(null() != 42); + println(null() == "42"); + println(null() != "42"); +}