alpha
Login
or
Join now
utensil.tngl.sh
/
native-land
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Utensil's monorepo for native projects: Rust, Zig, C++..., including code on GPU
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
native-land
/
yard-zig
/
basic-xp
/
src
/
at
main
12 files
utensil
refactor: simplify test system to use single lib_mod instead of per-file modules [AGENT]
1y ago
57ab5c82
alloc.zig
refactor: simplify test system to use single lib_mod instead of per-file modules [AGENT] - Removed complex file walking logic that created individual modules per test file - Updated build.zig to use existing lib_mod for all tests instead of createModule() per file - Modified src/root.zig to import all test files and make them discoverable via test block - Fixed Zig 0.15 compatibility issues with root_module API changes - Reduced build complexity from 25+ steps to 5 steps while maintaining all 83 tests - Improved build performance and maintainability by centralizing test organization
1 year ago
array.zig
refactor: simplify arraylist test with loop and combined checks
1 year ago
comptime.zig
Improve comptime test cases
1 year ago
control.zig
feat: add inline else and metaprogramming examples to control flow tests [AGENT] - Added activeFieldSize function demonstrating inline else in switch statements - Added test showing inline else generates specialized code for union variants at compile time - Added ECS-inspired metaprogramming test using inline for and @typeInfo() introspection - Test validates component type matching with different field counts (Health: 2, Position: 3, Damage: 1) - Demonstrates Zig's powerful compile-time metaprogramming capabilities for generic component systems
1 year ago
float_precision.zig
Add comprehensive reference links to floating-point precision test file Added comprehensive reference links at the beginning of the file: Core reference sources: - https://en.wikipedia.org/wiki/Floating-point_arithmetic#Accuracy_problems - https://www.exploringbinary.com/why-0-point-1-does-not-exist-in-floating-point/ - https://www.exploringbinary.com/floating-point-questions-are-endless-on-stackoverflow-com/ - https://docs.python.org/3/tutorial/floatingpoint.html - https://floating-point-gui.de/basic/ Additional educational resources: - https://www.baeldung.com/cs/floating-point-numbers-inaccuracy - https://riskledger.com/resources/floating-point-numbers - https://www.johndcook.com/blog/2025/06/27/most-ints-are-not-floats/ - https://leancrew.com/all-this/2025/06/in-defense-of-floating-point/ These links provide comprehensive theoretical foundation and educational context for understanding IEEE 754 floating-point precision limitations demonstrated in the test cases. They serve as valuable resources covering both the problems and practical approaches to floating-point arithmetic. The test file now properly credits its inspiration sources and provides readers with authoritative references for deeper understanding of the concepts being demonstrated.
1 year ago
main.zig
Add basic-xp and make `just test` work
1 year ago
pointer.zig
fix: correct pointer type mismatch by making y mutable
1 year ago
root.zig
refactor: simplify test system to use single lib_mod instead of per-file modules [AGENT] - Removed complex file walking logic that created individual modules per test file - Updated build.zig to use existing lib_mod for all tests instead of createModule() per file - Modified src/root.zig to import all test files and make them discoverable via test block - Fixed Zig 0.15 compatibility issues with root_module API changes - Reduced build complexity from 25+ steps to 5 steps while maintaining all 83 tests - Improved build performance and maintainability by centralizing test organization
1 year ago
rt_safety.zig
refactor: split runtime safety checks into separate test file
1 year ago
safety.zig
refactor: split runtime safety checks into separate test file
1 year ago
simd.zig
fix: replace invalid @store builtin with direct vector assignment in simd test
1 year ago
string_literals.zig
test: add @embedFile demonstration alongside multiline strings Extended string_literals.zig to include @embedFile functionality with a focused test that demonstrates the key relationship between @embedFile and multiline string literals: - Added single @embedFile test showing compile-time file embedding - Demonstrates embedding the source file itself for clean self-reference - Highlights key distinction: @embedFile for external files vs multiline strings for inline content - Both features provide zero runtime cost with compile-time resolution - Maintains focused approach with only 5 total tests (4 multiline + 1 @embedFile) This addition showcases complementary Zig features for handling multi-line text content without bloating the test suite with redundant cases.
1 year ago