do-dyn

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.mfashby.net:/do-dyn
Log | Files | Refs | README

root.zig (191B)


      1 const std = @import("std");
      2 const testing = std.testing;
      3 
      4 export fn add(a: i32, b: i32) i32 {
      5     return a + b;
      6 }
      7 
      8 test "basic add functionality" {
      9     try testing.expect(add(3, 7) == 10);
     10 }