You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: TrajectoryTest.m
    path of file: ./repos/robotics-toolbox-matlab/unit_test
    
    the code of the file until where you have to start completion: %% This is for testing the Trajectory Generation functions in the robotics Toolbox
function tests = TrajectoryTest
  tests = functiontests(localfunctions);
  clc
end

function teardownOnce(tc)
    close all
end


function tpoly_test(tc)

    
    s1 = 1;
    s2 = 2;
    
    %% no boundary conditions
    
    tpoly(s1, s2, 11);
    
    s = tpoly(s1, s2, 11);
    tc.verifyTrue(all(diff(s) > 0));  % output is monotonic
    tc.verifyEqual(s
    
function ctraj_test(tc)
    % unit testing ctraj with T0 and T1 and N
    T0 = transl(1,2,3);
    T1 = transl(-1,-2,-3)*trotx(pi);
    
    T = ctraj(T0, T1, 3);
    tc.verifyEqual(size(T,3), 3);
    tc.verifyEqual(T(:,:,1), T0, 'abstol', 1e-10);
    tc.verifyEqual(T(:,:,2), trotx(pi/2), 'abstol', 1e-10);
    tc.verifyEqual(T(:,:,3), T1, 'abstol', 1e-10);

    % unit testing ctraj with T0 and T1 and S(i)
    T = ctraj(T0, T1, [1 0 0.5]);
    tc.verifyEqual(size(T,3), 3);

    tc.verifyEqual(T(:,:,1), T1, 'abstol', 1e-10);
    tc.verifyEqual(T(:,:,3), trotx(pi/2), 'abstol', 1e-10);
    tc.verifyEqual(T(:,:,2), T0, 'abstol', 1e-10);
end