ellip-dev-utils 1.1.0

Development utilities for Ellip.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Ellip is licensed under The 3-Clause BSD, see LICENSE.
 * Copyright 2025 Sira Pornsiriprasert <code@psira.me>
 */

use std::path::PathBuf;

/// Finds test data files matching the pattern: function_name_*.csv
pub fn find_test_files(function_name: &str, dir: &str) -> Vec<PathBuf> {
    // Also try the wolfram directory specifically as fallback
    let pattern = format!("tests/data/{dir}/{function_name}_*.csv");
    glob::glob(&pattern)
        .unwrap()
        .map(|path| path.unwrap())
        .collect()
}