mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
rename tests to ui-tests
This commit is contained in:
parent
b68d775671
commit
dd93453943
9 changed files with 12 additions and 12 deletions
19
ui-tests/ui/function_calls_ok.nil
Normal file
19
ui-tests/ui/function_calls_ok.nil
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//@check-pass
|
||||
|
||||
function main() = (
|
||||
noArgs();
|
||||
singleArg("hi!");
|
||||
manyArgs(1,2,3,4,5,6);
|
||||
|
||||
let a: () = returnNothing();
|
||||
let b: () = returnExplicitUnit();
|
||||
let c: String = returnString();
|
||||
);
|
||||
|
||||
function noArgs() =;
|
||||
function singleArg(a: String) =;
|
||||
function manyArgs(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) =;
|
||||
|
||||
function returnNothing() =;
|
||||
function returnExplicitUnit(): () =;
|
||||
function returnString(): String = "uwu";
|
||||
2
ui-tests/ui/hello_world.nil
Normal file
2
ui-tests/ui/hello_world.nil
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
//@check-pass
|
||||
function main() = print("Hello, world!\n");
|
||||
21
ui-tests/ui/type_assignments.nil
Normal file
21
ui-tests/ui/type_assignments.nil
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
//@check-pass
|
||||
|
||||
type CustomType = {};
|
||||
|
||||
function main() = ();
|
||||
|
||||
function assigns(
|
||||
a: Int,
|
||||
b: I32,
|
||||
c: String,
|
||||
d: Bool,
|
||||
e: CustomType,
|
||||
f: (Int, I32),
|
||||
) = (
|
||||
let a1: Int = a;
|
||||
let b1: I32 = b;
|
||||
let c1: String = c;
|
||||
let d1: Bool = d;
|
||||
let e1: CustomType = e;
|
||||
let f1: (Int, I32) = f;
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue