/*
    Copyright 2005-2007 Adobe Systems Incorporated
    Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
    or a copy at http://stlab.adobe.com/licenses.html)
*/

sheet named_function_test_suite
{
interface:
    sample_array        : [3.14, 5, 6.28];
    sample_dictionary   : {pi: @pi_name, two_pi: 6.28, pi_str: "three point one four"};
    min_element_test    : min(sample_array[0], sample_array[1], sample_array[2]);
    max_element_test    : max(sample_array[0], sample_array[1], sample_array[2]);
    round_test          : round(sample_array[0]);
    typeof_test_1       : typeof(sample_array);
    typeof_test_2       : typeof(sample_dictionary);
    contributing_test   : 10;

    fahrenheit          : 0;
    celsius             : 0;

logic:
    relate {
        fahrenheit <== scale(x: celsius, m: 9/5, b: 32);
        celsius <== scale(x: fahrenheit, m: 5/9, b: -32*5/9);
    }

output:
    result <==  {
                    typeof_test_1_result: typeof_test_1,
                    typeof_test_2_result: typeof_test_2,
                    min_element_test_result: min_element_test,
                    max_element_test_result: max_element_test,
                    round_test_result: round_test,
                    contributing_test_result: contributing(contributing_test),
                    sample_array_result: sample_array,
                    sample_dictionary_result: sample_dictionary
                };
}
