Skip to content

Commit

Permalink
oops, templatize the new test. legal regression did it's job.
Browse files Browse the repository at this point in the history
  • Loading branch information
brlcad committed Jan 14, 2025
1 parent 2e53709 commit 61ead1e
Showing 1 changed file with 41 additions and 4 deletions.
45 changes: 41 additions & 4 deletions src/librt/tests/arb8_tests.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
/* A R B 8 _ T E S T S . C
* BRL-CAD
*
* Copyright (c) 2025 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this file; see the file named COPYING for more
* information.
*/
/** @file arb8_tests.c
*
* Test different configurations of valid and invalid ARB8
*
*/

#include "common.h"

#include <stdio.h>
Expand Down Expand Up @@ -213,14 +238,15 @@ expected_result_t expected_results[] = {
{"SpanningCube", "Ray_Inside", 1}
};


// Main execution and validation
int
main(int ac, char *av[])
{
if (ac > 1) {
bu_log("Usage: %s\n", av[0]);
return 1;
}
if (ac > 1) {
bu_log("Usage: %s\n", av[0]);
return 1;
}

for (size_t i = 0; i < sizeof(arb8_configs) / sizeof(arb8_config_t); i++) {
const arb8_config_t *arb = &arb8_configs[i];
Expand Down Expand Up @@ -266,3 +292,14 @@ main(int ac, char *av[])

return 0;
}


/*
* Local Variables:
* tab-width: 8
* mode: C
* indent-tabs-mode: t
* c-file-style: "stroustrup"
* End:
* ex: shiftwidth=4 tabstop=8 cino=N-s
*/

0 comments on commit 61ead1e

Please sign in to comment.