Download unify/tests/test_main.h from Snapkitty/repoverse: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/Snapkitty/repoverse/resolve/main/unify/tests/test_main.h
- Command line
-
hf download hf://Snapkitty/repoverse/unify/tests/test_main.h
-
curl -L -o test_main.h https://huggingface.co/Snapkitty/repoverse/resolve/main/unify/tests/test_main.h
1.2 kB
| // Minimal test harness: TEST(name) registers a function; CHECK records failures with location. | |
| namespace unify_test { | |
| struct Case { const char* name; std::function<void()> fn; }; | |
| inline std::vector<Case>& registry() { static std::vector<Case> r; return r; } | |
| inline int& failures() { static int f = 0; return f; } | |
| inline int& checks() { static int c = 0; return c; } | |
| struct Reg { Reg(const char* n, std::function<void()> f) { registry().push_back({n, std::move(f)}); } }; | |
| } // namespace unify_test | |