// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage

shader v_string_v_result (output vector cout = 0) 
{
    string v_string = concat("astro physics", format("%g", P[0]));
    string end = "spam";
    string v_result = format("%g", P[0]);
    
    v_result = concat(v_string, end);
    
    if(endswith(v_result, "am")){
        cout = vector(u, u/v, v);
    }
}
