summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-02 18:38:36 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-02 18:38:36 +0100
commit3f3ba1c58ec2d902e5a32fbffc1b8790deef6f90 (patch)
treed4980297e87ea449933e4cccf31661ac119f9b5f
parentf09e816aee0513031656734cc3cded9827e0b22b (diff)
Update test script
-rw-r--r--test.x26
1 files changed, 13 insertions, 13 deletions
diff --git a/test.x b/test.x
index f5d52f0..8a5643e 100644
--- a/test.x
+++ b/test.x
@@ -2,28 +2,28 @@ def puts = $foreign("puts", func(s ^u8));
/*
def foo = func {
- let my_string =
- \ This is my line
- \ this is a second line
- \ etc.
- ;
- puts(my_string);
+ let my_string =
+ \ This is my line
+ \ this is a second line
+ \ etc.
+ ;
+ puts(my_string);
}
*/
/* def add = func(dst *vec($N), v, u vec($N))
- * $poke(operator.addeq)
+ * $poke(operator.addeq)
* {
- * loop (i: 0...N)
- * dst[i] = v[i] + u[i];
+ * loop (i: 0...N)
+ * dst[i] = v[i] + u[i];
* }; */
def main′ = func {
puts("Hello, sailor!");
- some_func(#b10.1100'1001e11);
- slices_sort(my_slice, func(x, y int) int {
- return x - y;
- });
+ some_func(#b10.1100'1001e+11);
+ slices_sort(my_slice, func(x, y int) int {
+ return x - y;
+ });
};
def some_func = func(n u32) u32 { return n * 2; };