engine/script/src/test/test_script_module.cpp
// Verify that Lua chunknames are prefixed with '=' and the last parts
// of the paths are taken, not from the start.
Verify that Lua chunknames are prefixed with '=' and the last parts
of the paths are taken, not from the start.
Verify that Lua chunknames are prefixed with ' = ' and the last parts of the paths are taken not from the start .
TEST_P(ChunknameTests, Chunkname)
{
    const ChunknameParam& param = GetParam();
    char tmp[61];
    dmScript::PrefixFilename(dmScript::FindSuitableChunkname(param.m_Input), '=', tmp, sizeof(tmp));
    ASSERT_EQ('=', tmp[0]);
    ASSERT_STREQ(param.m_Expected, tmp);
}
TEST_P ( ChunknameTests , Chunkname ) { const ChunknameParam & param = GetParam ( ) ; char tmp [ 61 ] ; dmScript :: PrefixFilename ( dmScript :: FindSuitableChunkname ( param . m_Input ) , ' ' , tmp , sizeof ( tmp ) ) ; ASSERT_EQ ( ' ' , tmp [ 0 ] ) ; ASSERT_STREQ ( param . m_Expected , tmp ) ; }
Verify that Lua chunknames are prefixed with '=' and the last parts
of the paths are taken, not from the start.
Verify that Lua chunknames are prefixed with ' = ' and the last parts of the paths are taken not from the start .