aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test.zig28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test.zig b/tests/test.zig
new file mode 100644
index 0000000..b448aef
--- /dev/null
+++ b/tests/test.zig
@@ -0,0 +1,28 @@
1const std = @import("std");
2
3pub fn main() !void {
4 std.debug.print("Hello, world!\n", .{});
5}
6
7pub fn add(a: i32, b: i32) i32 {
8 return a + b;
9}
10
11const Point = struct {
12 x: f32,
13 y: f32,
14
15 pub fn init(x: f32, y: f32) Point {
16 return Point{ .x = x, .y = y };
17 }
18};
19
20const Color = enum {
21 Red,
22 Green,
23 Blue,
24};
25
26const MyError = error{
27 BadStuff,
28};