-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84b49fa
commit 80fb281
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
const std = @import("std"); | ||
|
||
const WhileRange = @import("root.zig").WhileRange; | ||
const lib_main = @import("root.zig").lib_main; | ||
const lib_main = @import("root.zig").main; | ||
|
||
pub fn main() !void { | ||
// Integer range (forward) | ||
try lib_main(); | ||
std.debug.print("{s}\n", .{"Hello, world!"}); | ||
} | ||
|
||
test "test_exe_main" { | ||
std.debug.print("Running tests in src/main.zig \"main\"\n", .{}); | ||
|
||
try main(); | ||
} | ||
|
||
test "test_lib_main_within_exe" { | ||
try lib_main(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters