[][src]Function pbrt::core::paramset::testutils::make_int_param_set

pub fn make_int_param_set(name: &str, vals: Vec<isize>) -> ParamSet

Creates a ParamSet with one entry containing name and set to vals.

Examples

use pbrt::core::paramset::testutils::make_int_param_set;

let ps = make_int_param_set("value", vec![1]);
assert_eq!(ps.find_one_int("value", 2), 1);
assert_eq!(ps.find_one_int("non-existent", 2), 2);