<commit_before>use Test;

plan 1;

use-ok 'Math::Trig';


# TODO: how to test only exporting certain symbols?<commit_msg>Add basic tests for properly exported symbols<commit_after>use Test;

plan 21;

use-ok 'Math::Trig';

{
    need Math::Trig;
    import Math::Trig;

    ok &rad2rad, 'rad2rad sub is exported by :DEFAULT';
    ok &deg2deg, 'deg2deg sub is exported by :DEFAULT';
    ok &grad2grad, 'grad2grad sub is exported by :DEFAULT';
    ok &rad2deg, 'rad2deg sub is exported by :DEFAULT';
    ok &deg2rad , 'deg2rad sub is exported by :DEFAULT';
    ok &grad2deg, 'grad2deg sub is exported by :DEFAULT';
    ok &deg2grad, 'deg2grad sub is exported by :DEFAULT';
    ok &rad2grad, 'rad2grad sub is exported by :DEFAULT';
    ok &grad2rad, 'grad2rad sub is exported by :DEFAULT';
}

{
    need Math::Trig;
    import Math::Trig :radial;

	ok &cartesian-to-spherical, 'cartesian-to-spherical is exported by :radial';
	ok &spherical-to-cartesian, 'spherical-to-cartesian is exported by :radial';
	ok &spherical-to-cylindrical, 'spherical-to-cylindrical is exported by :radial';
	ok &cylindrical-to-cartesian, 'cylindrical-to-cartesian is exported by :radial';
	ok &cylindrical-to-spherical, 'cylindrical-to-spherical is exported by :radial';
}

{
    need Math::Trig;
    import Math::Trig :great-circle;

	ok &great-circle-distance, 'great-circle-distance is exported by :great-circle';
	ok &great-circle-bearing, 'great-circle-bearing is exported by :great-circle';
	ok &great-circle-direction, 'great-circle-direction is exported by :great-circle';
	ok &great-circle-waypoint, 'great-circle-waypoint is exported by :great-circle';
	ok &great-circle-midpoint, 'great-circle-midpoint is exported by :great-circle';
	ok &great-circle-destination, 'great-circle-destination is exported by :great-circle';
}
{'fraction_non_alphanumeric': 0.12265193370165746, 'fraction_numerical': 0.011602209944751382, 'mean_word_length': 4.454819277108434, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1399599', 'n_tokens_mistral': 668, 'n_tokens_neox': 604, 'n_words': 188}